Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eroux committed Jun 12, 2019
1 parent a0b4164 commit 026cb5d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pyewts/pyewts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1173,12 +1173,11 @@ def toUnicodeOneTsekbar(self, tokens, i):
def consonantString(self, tokens, i):
out = []
t = None
i += 1
while i<len(tokens):
while i < len(tokens):
t = tokens[i]
i += 1
if t == "+" or t == "^":
continue
continue
if self.consonant(t) == None:
break
out.append(t)
Expand All @@ -1187,12 +1186,11 @@ def consonantString(self, tokens, i):
def consonantStringBackwards(self, tokens, i, orig_i):
out = []
t = None
i -= 1
while i >= orig_i and tokens[i] != None:
t = tokens[i]
i -= 1
if t == "+" or t == "^":
continue
continue
if self.consonant(t) == None:
break
out.insert(0,t)
Expand Down

0 comments on commit 026cb5d

Please sign in to comment.