diff options
Diffstat (limited to 'pyparsing/results.py')
-rw-r--r-- | pyparsing/results.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyparsing/results.py b/pyparsing/results.py index 842d16b..9676f45 100644 --- a/pyparsing/results.py +++ b/pyparsing/results.py @@ -462,8 +462,10 @@ class ParseResults: return ( "[" + ", ".join( - str(i) if isinstance(i, ParseResults) else repr(i) - for i in self._toklist + [ + str(i) if isinstance(i, ParseResults) else repr(i) + for i in self._toklist + ] ) + "]" ) |