Get rid of continue

This commit is contained in:
Florian Bruhin 2014-11-06 06:46:21 +01:00
parent cb24ec58cc
commit 77949c8d33

View File

@ -72,12 +72,8 @@ class ShellLexer:
if self.keep:
self.token += nextchar
if self.token or self.quoted:
# emit current token
yield self.token
self.reset()
continue
else:
continue
elif nextchar in self.escape:
if self.keep:
self.token += nextchar
@ -122,9 +118,6 @@ class ShellLexer:
if self.token or self.quoted:
yield self.token
self.reset()
continue
else:
continue
elif nextchar in self.quotes:
if self.keep:
self.token += nextchar