mirror of
https://github.com/ciromattia/kcc
synced 2026-10-15 05:52:33 +00:00
Fixed CBR parsing anomalies (close #133)
This commit is contained in:
+2
-2
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user