Fixed CBR parsing anomalies (close #133)

This commit is contained in:
Paweł Jastrzębski
2015-04-27 18:50:14 +02:00
parent 77748afdbd
commit 84fc23b979
5 changed files with 16 additions and 22 deletions
+2 -2
View File
@@ -104,9 +104,9 @@ def saferReplace(old, new):
def removeFromZIP(zipfname, *filenames):
tempdir = mkdtemp('', 'KCC-TMP-')
tempdir = mkdtemp('', 'KCC-')
try:
tempname = os.path.join(tempdir, 'KCC-TMP.zip')
tempname = os.path.join(tempdir, 'KCC.zip')
with ZipFile(zipfname, 'r') as zipread:
with ZipFile(tempname, 'w', compression=ZIP_DEFLATED) as zipwrite:
for item in zipread.infolist():