]> code.delx.au - webdl/commitdiff
Fixed whitespace
authorJames Bunton <jamesbunton@delx.net.au>
Tue, 2 Oct 2012 12:27:53 +0000 (22:27 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Tue, 2 Oct 2012 12:27:53 +0000 (22:27 +1000)
common.py

index f45cc31cd7a2af821c795ba4f5a9e1788a7951bb..afd63206348732c2f6edc20f21630a3904b14536 100644 (file)
--- a/common.py
+++ b/common.py
@@ -61,9 +61,9 @@ def load_root_node():
 
 valid_chars = frozenset("-_.()!@#%^ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
 def sanify_filename(filename):
 
 valid_chars = frozenset("-_.()!@#%^ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
 def sanify_filename(filename):
-    filename = filename.encode("ascii", "ignore")
-    filename = "".join(c for c in filename if c in valid_chars)
-    return filename
+       filename = filename.encode("ascii", "ignore")
+       filename = "".join(c for c in filename if c in valid_chars)
+       return filename
 
 
 def urlopen(url, max_age):
 
 
 def urlopen(url, max_age):
@@ -239,7 +239,7 @@ def natural_sort(l, key=None):
                                                newk.append(subc)
                return newk
 
                                                newk.append(subc)
                return newk
 
-    return sorted(l, key=key_func)
+       return sorted(l, key=key_func)
 
 def append_to_qs(url, params):
        r = list(urlparse.urlsplit(url))
 
 def append_to_qs(url, params):
        r = list(urlparse.urlsplit(url))