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,15 +24,14 @@ class Iterator(object): | ||
24 | def getCount(self): | 24 | def getCount(self): |
25 | return self.count | 25 | return self.count |
26 | 26 | ||
27 | - def getToken(self, i): | 27 | + def getToken(self, i=None): |
28 | if(i == "+"): | 28 | if(i == "+"): |
29 | return self.__list[self.count+1] | 29 | return self.__list[self.count+1] |
30 | 30 | ||
31 | elif(i == "-"): | 31 | elif(i == "-"): |
32 | return self.__list[self.count-1] | 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 | def getAtualW(self): | 36 | def getAtualW(self): |
38 | return remover_acentos(self.getToken(0)[0].upper().encode('utf-8')) | 37 | return remover_acentos(self.getToken(0)[0].upper().encode('utf-8')) |