# HG changeset patch # User Jeff Hammel # Date 1606243453 28800 # Node ID 50b319ad87b82fc5bf2a9096926c373cb30ba18b # Parent b9507638faf53786a32d7c3e5de1eb7236d57287 cleanup diff -r b9507638faf5 -r 50b319ad87b8 wordstream/dissociate.py --- a/wordstream/dissociate.py Tue Nov 24 10:42:36 2020 -0800 +++ b/wordstream/dissociate.py Tue Nov 24 10:44:13 2020 -0800 @@ -2,11 +2,11 @@ import random import sys -import urllib2 from optparse import OptionParser from pprint import pprint -from wordstream.api import Corpus +from .api import Corpus + def dissociate(corpus, output=sys.stdout): while corpus: @@ -18,7 +18,7 @@ word = corpus.eat(word) if inedible: # eat it anyway corpus.eat(word) - + def main(args=sys.argv[1:]): parser = OptionParser('%prog <...>')