diff options
| author | Georg Brandl <georg@python.org> | 2010-01-17 19:33:23 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-01-17 19:33:23 +0100 |
| commit | 98bcd2fab4a82318ddd64efa66fff2ffdec353bf (patch) | |
| tree | deb311cb6a8c188e72e69193ef6bb0615a14cdf8 /sphinx/pycode | |
| parent | 1bce0d7e6afa7afd0237df2ef75b823bb8e21e82 (diff) | |
| download | sphinx-git-98bcd2fab4a82318ddd64efa66fff2ffdec353bf.tar.gz | |
Make the _ gettext alias an explicit import instead of installing into builtins.
Diffstat (limited to 'sphinx/pycode')
| -rw-r--r-- | sphinx/pycode/pgen2/grammar.py | 2 | ||||
| -rw-r--r-- | sphinx/pycode/pgen2/pgen.py | 4 |
2 files changed, 3 insertions, 3 deletions
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: |
