updated from Atlas repo

This commit is contained in:
Luciano Ramalho
2014-12-14 01:26:42 -02:00
parent dcd59eef31
commit 33d65dc590
21 changed files with 359 additions and 299 deletions

View File

@@ -22,10 +22,10 @@ class Sentence:
return 'Sentence(%s)' % reprlib.repr(self.text)
def __iter__(self): # <1>
return SentenceIter(self.words) # <2>
return SentenceIterator(self.words) # <2>
class SentenceIter:
class SentenceIterator:
def __init__(self, words):
self.words = words # <3>