Mercurial > hg > wordstream
changeset 16:50b319ad87b8
cleanup
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 24 Nov 2020 10:44:13 -0800 |
parents | b9507638faf5 |
children | d2060c9bdb31 |
files | wordstream/dissociate.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 <path_or_url> <path_or_url> <...>')