diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-04-10 13:37:02 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-06-28 02:51:58 +0200 |
commit | 2ff2fb0495febe11d5015d2308d67e1d8048e597 (patch) | |
tree | 2ae9d1da4a701fc6b3945ccc32dfbbf102b9c85a /module/lib/Unzip.py | |
parent | Localization badge (diff) | |
download | pyload-2ff2fb0495febe11d5015d2308d67e1d8048e597.tar.xz |
Some code cosmetics about commas, spaces and quotes
Merges #577
Diffstat (limited to 'module/lib/Unzip.py')
-rw-r--r-- | module/lib/Unzip.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/lib/Unzip.py b/module/lib/Unzip.py index 6d2ada8f2..c04b9abe8 100644 --- a/module/lib/Unzip.py +++ b/module/lib/Unzip.py @@ -18,8 +18,8 @@ class Unzip: for i, name in enumerate(zf.namelist()): if not name.endswith('/') and not name.endswith("config"): - print "extracting", name.replace("pyload/","") - outfile = open(os.path.join(dir, name.replace("pyload/","")), 'wb') + print "extracting", name.replace("pyload/", "") + outfile = open(os.path.join(dir, name.replace("pyload/", "")), 'wb') outfile.write(zf.read(name)) outfile.flush() outfile.close() @@ -44,7 +44,7 @@ class Unzip: for name in zf.namelist(): if name.endswith('/'): - dirs.append(name.replace("pyload/","")) + dirs.append(name.replace("pyload/", "")) dirs.sort() return dirs |