[jsinterp] Complying with PEP 479
This commit is contained in:
parent
d977e93070
commit
38b260228a
@ -16,7 +16,6 @@ class Parser(object):
|
|||||||
def parse(self):
|
def parse(self):
|
||||||
while not self.token_stream.ended:
|
while not self.token_stream.ended:
|
||||||
yield self._source_element(self.stack_top)
|
yield self._source_element(self.stack_top)
|
||||||
raise StopIteration
|
|
||||||
|
|
||||||
def _source_element(self, stack_top):
|
def _source_element(self, stack_top):
|
||||||
if stack_top < 0:
|
if stack_top < 0:
|
||||||
|
@ -154,7 +154,6 @@ class TokenStream(object):
|
|||||||
self.ended = True
|
self.ended = True
|
||||||
else:
|
else:
|
||||||
raise ExtractorError('Unrecognised sequence at %d' % pos)
|
raise ExtractorError('Unrecognised sequence at %d' % pos)
|
||||||
raise StopIteration
|
|
||||||
|
|
||||||
def chk_id(self, last=False):
|
def chk_id(self, last=False):
|
||||||
if last:
|
if last:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user