sync to Atlas repo

This commit is contained in:
Luciano Ramalho
2014-12-06 15:38:22 -02:00
parent 2f495627fb
commit b38e6fc5f2
7 changed files with 72 additions and 43 deletions

View File

@@ -12,10 +12,10 @@ class Sentence:
def __init__(self, text):
self.text = text
self.words = RE_WORD.findall(text) #<1>
self.words = RE_WORD.findall(text) # <1>
def __getitem__(self, index):
return self.words[index] #<2>
return self.words[index] # <2>
def __repr__(self):
return 'Sentence(%s)' % reprlib.repr(self.text) #<3>
return 'Sentence(%s)' % reprlib.repr(self.text) # <3>