From 7b5d5f8c4bbec220ca2e31af5861d4009a3c1997 Mon Sep 17 00:00:00 2001 From: Mark Shoulson Date: Sat, 17 Jan 2009 21:48:26 -0500 Subject: Small upgrade to scan4dups, added some more math and weird symbols. --- scan4dups.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scan4dups.py') 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: -- cgit v1.2.3