From 2ff2fb0495febe11d5015d2308d67e1d8048e597 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 10 Apr 2014 13:37:02 +0200 Subject: Some code cosmetics about commas, spaces and quotes Merges #577 --- module/lib/Unzip.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/lib/Unzip.py') 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 -- cgit v1.2.3