mkbundle: fix missed StringIO usage instead cStringIO.StringIO, fixes #2461

This commit is contained in:
Jaroslav Kysela 2014-11-10 20:34:26 +01:00
parent 7c00e47c24
commit 3cc291c2ed

View file

@ -78,7 +78,7 @@ def output_file ( path, name, idx, next = -1 ):
if opts.gzip: if opts.gzip:
o = len(d) o = len(d)
l = opts.gzlevel l = opts.gzlevel
t = cStringIO.StringIO() t = StringIO()
if l < 0: l = 1 if l < 0: l = 1
if l > 9: l = 9 if l > 9: l = 9
z = gzip.GzipFile(filename=name, mode='w', compresslevel=l, fileobj=t) z = gzip.GzipFile(filename=name, mode='w', compresslevel=l, fileobj=t)