Code cleanup
This commit is contained in:
1 parent
1c28305b83
commit
75a338304a
5 files changed
+13
-18
No files matched your search
+2
-3
@@ -26,7 +26,6 @@ import locale
|
||||
from subprocess import Popen, STDOUT, PIPE
|
||||
|
||||
|
||||
# noinspection PyBroadException
|
||||
class CBxArchive:
|
||||
def __init__(self, origFileName):
|
||||
self.origFileName = origFileName
|
||||
@@ -51,7 +50,7 @@ class CBxArchive:
|
||||
elif f.endswith('/'):
|
||||
try:
|
||||
os.makedirs(os.path.join(targetdir, f))
|
||||
except:
|
||||
except StandardError:
|
||||
pass # the dir exists so we are going to extract the images only.
|
||||
else:
|
||||
filelist.append(f)
|
||||
@@ -66,7 +65,7 @@ class CBxArchive:
|
||||
elif f.endswith('/'):
|
||||
try:
|
||||
os.makedirs(os.path.join(targetdir, f))
|
||||
except:
|
||||
except StandardError:
|
||||
pass # the dir exists so we are going to extract the images only.
|
||||
else:
|
||||
filelist.append(f.encode(locale.getpreferredencoding()))
|
||||
|
||||
Reference in new issue
Block a user