diff python/anagram.py @ 21:099a3bfa2852

fixes to anagram.py
author k0s <k0scist@gmail.com>
date Fri, 26 Feb 2010 13:19:14 -0500
parents f3ab51c79813
children 4096771c8b9f
line wrap: on
line diff
--- a/python/anagram.py	Mon Feb 22 13:59:07 2010 -0500
+++ b/python/anagram.py	Fri Feb 26 13:19:14 2010 -0500
@@ -45,7 +45,6 @@
                     if is_in(i, subword) is not None ]
         subgram = anagramize(subword, sublist, level+1)
 
-#        import pdb;  pdb.set_trace()
         if subgram is not None:
             anagrams += [ ' '.join((word, i)) for i in subgram ]
 
@@ -87,11 +86,8 @@
     f = file(options.filename, 'r')
     read_dictionary(f)
 
+    # XXX could cleanup
     anagram = ' '.join(args)
-
-    print anagram
-    print '-' * len(anagram)
-
     anagram = ''.join(anagram.split()).lower()
 
     # don't use letter names