Skip to content

Commit a8c5639

Browse files
committed
Add missing imports.
1 parent 8370c1f commit a8c5639

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

parsing/automaton.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"""
55
import types
66
import six
7+
from six import print_
8+
import sys
79

810
from parsing.errors import SpecError
911
from parsing.interfaces import is_spec_source
@@ -608,8 +610,8 @@ def _prepare(self, adapter, pickleFile, pickleMode, logFile, graphFile):
608610
# Nonterm, and 2) contain the appropriate %foo docstring.
609611
def _introspect(self, adapter):
610612
if self._verbose:
611-
print_(("Parsing.Spec: Introspecting module%s to acquire formal" + \
612-
" grammar specification...") % ("s", "")[len(modules) == 1])
613+
print_(("Parsing.Spec: Introspecting to acquire formal" + \
614+
" grammar specification..."))
613615

614616
self._precedences["none"] = self._none
615617
self._precedences["split"] = self._split
@@ -626,7 +628,7 @@ def _introspect(self, adapter):
626628
if name in self._nonterms:
627629
raise SpecError("Identical nonterm/precedence names: %s" % (name,))
628630
self._precedences[name] = prec
629-
631+
630632
#===========================================================
631633
# Token.
632634
#

0 commit comments

Comments
 (0)