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 | b0dbc8bb87461a6ac18acd744472f1eca94a3150 (patch) | |
| tree | deb311cb6a8c188e72e69193ef6bb0615a14cdf8 /sphinx/pycode | |
| parent | d640630d580aef603fed3e1dd6dfd15703a243f8 (diff) | |
| download | sphinx-b0dbc8bb87461a6ac18acd744472f1eca94a3150.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 381d80e8..5a433578 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 d6895eae..b19c5447 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: |
