Mercurial > hg > wordstream
changeset 18:6718f2808a65
py3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 24 Nov 2020 10:48:04 -0800 |
parents | d2060c9bdb31 |
children | 49ff2772891d |
files | wordstream/api.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/wordstream/api.py Tue Nov 24 10:47:20 2020 -0800 +++ b/wordstream/api.py Tue Nov 24 10:48:04 2020 -0800 @@ -17,7 +17,7 @@ del self[word] def feed_stream(self, stream): - if isinstance(stream, basestring): + if isinstance(stream, str): stream = stream.split() while len(stream) > 1: self.feed(stream[-2], stream[-1])