diff options
| author | Georg Brandl <georg@python.org> | 2010-01-17 19:39:51 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-01-17 19:39:51 +0100 |
| commit | 3cf4b15f157a2a8e6b1d5263aa39da646e356917 (patch) | |
| tree | 07497c2171730f3034348ba7e7ff65f09d1a5f8f /sphinx/pycode | |
| parent | b0dbc8bb87461a6ac18acd744472f1eca94a3150 (diff) | |
| download | sphinx-3cf4b15f157a2a8e6b1d5263aa39da646e356917.tar.gz | |
Remove XXXes from the pgen2 code.
Diffstat (limited to 'sphinx/pycode')
| -rw-r--r-- | sphinx/pycode/pgen2/driver.py | 2 | ||||
| -rw-r--r-- | sphinx/pycode/pgen2/pgen.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/pycode/pgen2/driver.py b/sphinx/pycode/pgen2/driver.py index edc882fa..39e347b7 100644 --- a/sphinx/pycode/pgen2/driver.py +++ b/sphinx/pycode/pgen2/driver.py @@ -35,7 +35,7 @@ class Driver(object): def parse_tokens(self, tokens, debug=False): """Parse a series of tokens and return the syntax tree.""" - # XXX Move the prefix computation into a wrapper around tokenize. + # X X X Move the prefix computation into a wrapper around tokenize. p = parse.Parser(self.grammar, self.convert) p.setup() lineno = 1 diff --git a/sphinx/pycode/pgen2/pgen.py b/sphinx/pycode/pgen2/pgen.py index b19c5447..0a04447d 100644 --- a/sphinx/pycode/pgen2/pgen.py +++ b/sphinx/pycode/pgen2/pgen.py @@ -54,12 +54,12 @@ class ParserGenerator(object): first = {} for label in rawfirst: ilabel = self.make_label(c, label) - ##assert ilabel not in first # XXX failed on <> ... != + ##assert ilabel not in first # X X X failed on <> ... != first[ilabel] = 1 return first def make_label(self, c, label): - # XXX Maybe this should be a method on a subclass of converter? + # X X X Maybe this should be a method on a subclass of converter? ilabel = len(c.labels) if label[0].isalpha(): # Either a symbol name or a named token |
