diff options
Diffstat (limited to 'pyparsing.py')
-rw-r--r-- | pyparsing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyparsing.py b/pyparsing.py index eabfead..d41ceba 100644 --- a/pyparsing.py +++ b/pyparsing.py @@ -294,7 +294,7 @@ class ParseBaseException(Exception): if self.loc >= len(self.pstr): foundstr = ', found end of text' else: - foundstr = ', found %r' % self.pstr[self.loc:self.loc+1] + foundstr = (', found %r' % self.pstr[self.loc:self.loc+1]).replace(r'\\', '\\') else: foundstr = '' return "%s%s (at char %d), (line:%d, col:%d)" % \ |