From 98bcd2fab4a82318ddd64efa66fff2ffdec353bf Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 17 Jan 2010 19:33:23 +0100 Subject: Make the _ gettext alias an explicit import instead of installing into builtins. --- sphinx/pycode/pgen2/grammar.py | 2 +- sphinx/pycode/pgen2/pgen.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sphinx/pycode') diff --git a/sphinx/pycode/pgen2/grammar.py b/sphinx/pycode/pgen2/grammar.py index 381d80e82..5a433578b 100644 --- a/sphinx/pycode/pgen2/grammar.py +++ b/sphinx/pycode/pgen2/grammar.py @@ -16,7 +16,7 @@ fallback token code OP, but the parser needs the actual token code. import pickle # Local imports -from sphinx.pycode.pgen2 import token, tokenize +from sphinx.pycode.pgen2 import token class Grammar(object): diff --git a/sphinx/pycode/pgen2/pgen.py b/sphinx/pycode/pgen2/pgen.py index d6895eaef..b19c54471 100644 --- a/sphinx/pycode/pgen2/pgen.py +++ b/sphinx/pycode/pgen2/pgen.py @@ -157,9 +157,9 @@ class ParserGenerator(object): #self.dump_nfa(name, a, z) dfa = self.make_dfa(a, z) #self.dump_dfa(name, dfa) - oldlen = len(dfa) + #oldlen = len(dfa) self.simplify_dfa(dfa) - newlen = len(dfa) + #newlen = len(dfa) dfas[name] = dfa #print name, oldlen, newlen if startsymbol is None: -- cgit v1.2.1