1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +01:00

- util.ar: do not import StringIO from the cStringIO module

The class ArFile inherits from StringIO but StringIO from cStringIO
is just a function (this got broken by commit 87d354e1a0).
This commit is contained in:
Marcus Huewe 2013-04-22 09:24:48 +02:00
parent 439dafbdc5
commit 5a8baf9b88

View File

@ -23,7 +23,7 @@ import stat
#XXX: python 2.7 contains io.StringIO, which needs unicode instead of str
#therefor try to import old stuff before new one here
try:
from cStringIO import StringIO
from StringIO import StringIO
except ImportError:
from io import StringIO