Skip to content

Commit 74260d7

Browse files
committed
Shut up, pyflakes.
1 parent 4de6a86 commit 74260d7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ometa/runtime.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"""
33
Code needed to run a grammar after it has been compiled.
44
"""
5-
import string
65
import time
7-
import operator
86
from textwrap import dedent
97
from terml.nodes import coerceToTerm, Term, termMaker as t
108
from ometa.builder import moduleFromGrammar, writePython
@@ -598,7 +596,7 @@ def _not(self, fn):
598596
m = self.input
599597
try:
600598
fn()
601-
except ParseError, e:
599+
except ParseError:
602600
self.input = m
603601
return True, self.input.nullError()
604602
else:
@@ -614,9 +612,9 @@ def eatWhitespace(self):
614612
c, e = self.input.head()
615613
except EOFError, e:
616614
break
617-
t = self.input.tail()
615+
tl = self.input.tail()
618616
if c.isspace():
619-
self.input = t
617+
self.input = tl
620618
else:
621619
break
622620
return True, e
@@ -851,7 +849,7 @@ def parseGrammar(self, name):
851849
self.name = name
852850
res, err = self.apply("grammar")
853851
try:
854-
x = self.input.head()
852+
self.input.head()
855853
except EOFError:
856854
pass
857855
else:

0 commit comments

Comments
 (0)