# HG changeset patch # User k0s # Date 1267208354 18000 # Node ID 099a3bfa2852da54cf64eb37d6baa795ee6eb48e # Parent 03fc1f76db91fd98a8380b0f051e905d9bf0e76b fixes to anagram.py diff -r 03fc1f76db91 -r 099a3bfa2852 python/anagram.py --- 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