diff options
author | ptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b> | 2015-11-01 04:44:32 +0000 |
---|---|---|
committer | ptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b> | 2015-11-01 04:44:32 +0000 |
commit | e20235d80f9b0e7d19c7491e130edeadf2144d7c (patch) | |
tree | 69302e7ff876ab86d7c30a99830b031cd9b4a52b | |
parent | e9d3d92b2c1ae540479ab5397adf1b95d16871d8 (diff) | |
download | pyparsing-e20235d80f9b0e7d19c7491e130edeadf2144d7c.tar.gz |
Fixed bug (introduced in 2.0.4) in dump where the lists would be shown in duplicate
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@297 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
-rw-r--r-- | src/CHANGES | 3 | ||||
-rw-r--r-- | src/pyparsing.py | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/CHANGES b/src/CHANGES index 7332ce7..4969eb6 100644 --- a/src/CHANGES +++ b/src/CHANGES @@ -19,6 +19,9 @@ Version 2.0.6 - a pyparsing user, but I've lost the email thread - finally figured out
a fairly clean way to do this.
+- Fixed a bug to dump() introduced in 2.0.4, where list values were shown
+ in duplicate.
+
Version 2.0.5 -
---------------------------
diff --git a/src/pyparsing.py b/src/pyparsing.py index d239524..8ee2a18 100644 --- a/src/pyparsing.py +++ b/src/pyparsing.py @@ -58,7 +58,7 @@ The pyparsing module handles some of the problems that are typically vexing when """
__version__ = "2.0.6"
-__versionTime__ = "31 Oct 2015 12:41"
+__versionTime__ = "31 Oct 2015 23:41"
__author__ = "Paul McGuire <ptmcg@users.sourceforge.net>"
import string
@@ -660,8 +660,6 @@ class ParseResults(object): out.append("\n%s%s[%d]:\n%s%s%s" % (indent,(' '*(depth)),i,indent,(' '*(depth+1)),vv.dump(indent,depth+1) ))
else:
out.append("\n%s%s[%d]:\n%s%s%s" % (indent,(' '*(depth)),i,indent,(' '*(depth+1)),_ustr(vv)))
- else:
- out.append(_ustr(self))
return "".join(out)
|