Skip to content

Commit 57b8969

Browse files
committed
Fixed a .next() call that broke py3 compatibility.
1 parent 61c7e47 commit 57b8969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

textblob/classifiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def basic_extractor(document, train_set):
8080
"""
8181

8282
try:
83-
el_zero = iter(train_set).next() #Infer input from first element.
83+
el_zero = next(iter(train_set)) #Infer input from first element.
8484
except StopIteration:
8585
return {}
8686
if isinstance(el_zero, basestring):

0 commit comments

Comments
 (0)