From 76fd560cde2b43e9afb42f988e0537547ae22afc Mon Sep 17 00:00:00 2001 From: stepshal Date: Sat, 8 Oct 2016 16:56:25 +0700 Subject: Upgrade pyparsing to version 2.1.10 --- pkg_resources/_vendor/pyparsing.py | 85 +++++++++++++++++++++++--------------- 1 file changed, 52 insertions(+), 33 deletions(-) mode change 100755 => 100644 pkg_resources/_vendor/pyparsing.py (limited to 'pkg_resources/_vendor/pyparsing.py') diff --git a/pkg_resources/_vendor/pyparsing.py b/pkg_resources/_vendor/pyparsing.py old mode 100755 new mode 100644 index d602a35a..a2122435 --- a/pkg_resources/_vendor/pyparsing.py +++ b/pkg_resources/_vendor/pyparsing.py @@ -60,8 +60,8 @@ The pyparsing module handles some of the problems that are typically vexing when - embedded comments """ -__version__ = "2.1.9" -__versionTime__ = "10 Sep 2016 15:10 UTC" +__version__ = "2.1.10" +__versionTime__ = "07 Oct 2016 01:31 UTC" __author__ = "Paul McGuire " import string @@ -868,7 +868,7 @@ class ParseResults(object): out.append( indent+_ustr(self.asList()) ) if full: if self.haskeys(): - items = sorted(self.items()) + items = sorted((str(k), v) for k,v in self.items()) for k,v in items: if out: out.append(NL) @@ -879,7 +879,7 @@ class ParseResults(object): else: out.append(_ustr(v)) else: - out.append(_ustr(v)) + out.append(repr(v)) elif any(isinstance(vv,ParseResults) for vv in self): v = self for i,vv in enumerate(v): @@ -953,7 +953,7 @@ def col (loc,strg): positions within the parsed string. """ s = strg - return 1 if loc