Code cleanup

This commit is contained in:
Paweł Jastrzębski committed 2013-10-27 11:33:29 +01:00
1 parent 1c28305b83
commit 75a338304a
5 files changed
+13 -18

No files matched your search

+2 -3
View File
@@ -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()))