Mercurial > hg
comparison mercurial/parser.py @ 11305:d4cafcb63f77
cleanups: undefined variables
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 08 Jun 2010 09:30:45 +0200 |
parents | 4215ce511134 |
children | 9d1cf337a78d |
comparison
equal
deleted
inserted
replaced
11304:8c377f2feee1 | 11305:d4cafcb63f77 |
---|---|
31 pass | 31 pass |
32 return t | 32 return t |
33 def _match(self, m): | 33 def _match(self, m): |
34 'make sure the tokenizer matches an end condition' | 34 'make sure the tokenizer matches an end condition' |
35 if self.current[0] != m: | 35 if self.current[0] != m: |
36 raise error.ParseError("unexpected token: %s" % self.current[2], | 36 raise error.ParseError("unexpected token: %s" % self.current[0], |
37 pos) | 37 self.current[2]) |
38 self._advance() | 38 self._advance() |
39 def _parse(self, bind=0): | 39 def _parse(self, bind=0): |
40 token, value, pos = self._advance() | 40 token, value, pos = self._advance() |
41 # handle prefix rules on current token | 41 # handle prefix rules on current token |
42 prefix = self._elements[token][1] | 42 prefix = self._elements[token][1] |