summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-10-29 10:22:42 +0100
committerJustin Lecher <jlec@gentoo.org>2015-10-29 11:43:59 +0100
commit34000ab9464b568e90a18894a7a752af73918bbf (patch)
treed0d4221c149ff4ac3fd6ae75d536a28e80eed599 /dev-python/pyparsing/files
parentdev-python/pyparsing: Drop old (diff)
downloadgentoo-34000ab9464b568e90a18894a7a752af73918bbf.tar.gz
gentoo-34000ab9464b568e90a18894a7a752af73918bbf.tar.bz2
gentoo-34000ab9464b568e90a18894a7a752af73918bbf.zip
dev-python/pyparsing: Version Bump
Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/pyparsing/files')
-rw-r--r--dev-python/pyparsing/files/pyparsing-2.0.4-print.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/pyparsing/files/pyparsing-2.0.4-print.patch b/dev-python/pyparsing/files/pyparsing-2.0.4-print.patch
new file mode 100644
index 000000000000..6262a18ea03d
--- /dev/null
+++ b/dev-python/pyparsing/files/pyparsing-2.0.4-print.patch
@@ -0,0 +1,51 @@
+ pyparsing.py | 20 +++++++++++---------
+ 1 file changed, 11 insertions(+), 9 deletions(-)
+
+diff --git a/pyparsing.py b/pyparsing.py
+index 81c82ce..55c72a3 100644
+--- a/pyparsing.py
++++ b/pyparsing.py
+@@ -22,6 +22,8 @@
+ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ #
+
++from __future__ import print_function
++
+ __doc__ = \
+ """
+ pyparsing module - Classes and methods to define and execute parsing grammars
+@@ -1554,19 +1556,19 @@ class ParserElement(object):
+ run a parse expression against a list of sample strings.
+ """
+ for t in tests:
+- print t
++ print(t)
+ try:
+- print self.parseString(t).dump()
++ print(self.parseString(t).dump())
+ except ParseException as pe:
+ if '\n' in t:
+- print line(pe.loc, t)
+- print ' '*(col(pe.loc,t)-1) + '^'
++ print(line(pe.loc, t))
++ print(' '*(col(pe.loc,t)-1) + '^')
+ else:
+- print ' '*pe.loc + '^'
+- print pe
+- print
++ print(' '*pe.loc + '^')
++ print(pe)
++ print()
++
+
+-
+ class Token(ParserElement):
+ """Abstract C{ParserElement} subclass, for defining atomic matching patterns."""
+ def __init__( self ):
+@@ -3803,4 +3805,4 @@ if __name__ == "__main__":
+ """
+ CHANGES
+ UnitTests.py
+-"""
+\ No newline at end of file
++"""