aboutsummaryrefslogtreecommitdiff
path: root/scan4dups.py
diff options
context:
space:
mode:
Diffstat (limited to 'scan4dups.py')
-rw-r--r--scan4dups.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scan4dups.py b/scan4dups.py
index a872db6..80a5eb7 100644
--- a/scan4dups.py
+++ b/scan4dups.py
@@ -54,7 +54,12 @@ try:
startpos+=m.end()
if startpos!=0: # Skip if the line had nothing.
if ptr.keys(): # Dup if the end is NOT a leaf.
- dupsfound.append(name2leaf(ptr))
+ # By rights I should follow each other key all the way
+ # down to all its possible ends. Too much work. But
+ # I will go one more down, OK?
+ for other in ptr.keys():
+ dupsfound.append(name2leaf(ptr[other])+"(+?)")
+ # The (+?) is because there might be more after that.
mystring=name2leaf(ptr)
# print "processed: (%s)"%mystring
for i in dupsfound: