]> thyrsus.com Git - comparator.git/commitdiff
Test whitespace removal.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 30 Aug 2003 06:50:24 +0000 (06:50 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 30 Aug 2003 06:50:24 +0000 (06:50 +0000)
shredtree.py

index 5a956752b0a3f656ec4d18d023ceef44565145d5..fe87f7c752f8010239a3b86db1b783f6e996f92a 100755 (executable)
@@ -5,7 +5,7 @@
 import sys, os, os.path, re, md5, getopt
 import shred
 
-ws = re.compile(r"[ \t\n]+")
+whitespace = re.compile(r"[ \t\n]+")
 
 def eligible(file):
     "Is a file eligible for comparison?"
@@ -20,7 +20,7 @@ def eligible(file):
 
 def normalize(line):
     if ws:
-        return ws.sub('', line)
+        return whitespace.sub('', line)
     else:
         return line