mkbundle: fix missed StringIO usage instead cStringIO.StringIO, fixes #2461
This commit is contained in:
parent
7c00e47c24
commit
3cc291c2ed
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue