aboutsummaryrefslogtreecommitdiff
path: root/scan4dups.py
diff options
context:
space:
mode:
authorMark Shoulson <mark@kli.org>2009-05-18 18:29:56 -0400
committerMark Shoulson <mark@kli.org>2009-05-18 18:29:56 -0400
commite839448160948c219aac1247e6ae6eb4d0200dd0 (patch)
treee3fbad9d5944dc432ba71d87280fcccc1b287894 /scan4dups.py
parentRewrite of scan4dups so it's MUCH simpler and actually works for a change. A... (diff)
downloaddotXCompose-e839448160948c219aac1247e6ae6eb4d0200dd0.tar.gz
dotXCompose-e839448160948c219aac1247e6ae6eb4d0200dd0.tar.bz2
dotXCompose-e839448160948c219aac1247e6ae6eb4d0200dd0.zip
Comments on flaws remaining in scan4dups, some additional chars.
Diffstat (limited to 'scan4dups.py')
-rw-r--r--scan4dups.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scan4dups.py b/scan4dups.py
index 11bcebc..f504623 100644
--- a/scan4dups.py
+++ b/scan4dups.py
@@ -31,6 +31,12 @@ try:
print "couldn't make sense of line: "+line
else:
listing[name]=m.group(1)
+ # THIS IS STILL FAULTY.
+ # What if a long one comes through first, and then a short one?
+ #
+ # Probably have to do two passes: record them all in the hash
+ # (and check for exact duplicates), then go though all the
+ # keys and check all their prefixes.
for i in dupsfound:
if listing[name]==listing[i]:
msg="Redundant definition: "