Mercurial > hg > config
changeset 21:099a3bfa2852
fixes to anagram.py
author | k0s <k0scist@gmail.com> |
---|---|
date | Fri, 26 Feb 2010 13:19:14 -0500 |
parents | 03fc1f76db91 |
children | 8da594377f18 |
files | python/anagram.py |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
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