# HG changeset patch # User Jeff Hammel # Date 1606243684 28800 # Node ID 6718f2808a65295bc360c7a7da2b57d8a5c87daf # Parent d2060c9bdb31f43bda5d35d5888ce4c149e56f16 py3 diff -r d2060c9bdb31 -r 6718f2808a65 wordstream/api.py --- 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])