fixed a bug that made it impossible to load two cbuiltins from the same directory / 2.5 compatibility

This commit is contained in:
David Halter
2012-07-13 15:04:10 +02:00
parent 364405166b
commit 4ee9faacec
3 changed files with 19 additions and 18 deletions

View File

@@ -957,6 +957,9 @@ class PyFuzzyParser(object):
# delete code again, only the parser needs it
del self.code
def __repr__(self):
return "<%s: %s>" % (self.__class__.__name__, self.top)
@property
def line_nr(self):
return self._line_of_tokenize_restart + self._tokenize_line_nr