Commit 840afa0ee2bdc51426b60326a3718fa115a44833
1 parent
185e9f94
Exists in
master
and in
1 other branch
Corrige função no Iterator
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
src/Iterator.py
... | ... | @@ -24,15 +24,14 @@ class Iterator(object): |
24 | 24 | def getCount(self): |
25 | 25 | return self.count |
26 | 26 | |
27 | - def getToken(self, i): | |
27 | + def getToken(self, i=None): | |
28 | 28 | if(i == "+"): |
29 | 29 | return self.__list[self.count+1] |
30 | 30 | |
31 | 31 | elif(i == "-"): |
32 | 32 | return self.__list[self.count-1] |
33 | 33 | |
34 | - else: | |
35 | - return self.__list[self.count] | |
34 | + return self.__list[self.count] | |
36 | 35 | |
37 | 36 | def getAtualW(self): |
38 | 37 | return remover_acentos(self.getToken(0)[0].upper().encode('utf-8')) | ... | ... |