From: Eric S. Raymond Date: Sat, 30 Aug 2003 06:50:24 +0000 (+0000) Subject: Test whitespace removal. X-Git-Tag: 1.0~116 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=b20320301a654d4876fc37310e9d78c26b472712;p=comparator.git Test whitespace removal. --- diff --git a/shredtree.py b/shredtree.py index 5a95675..fe87f7c 100755 --- a/shredtree.py +++ b/shredtree.py @@ -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