+++ /dev/null
- 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.\r
- #\r
- \r
-+from __future__ import print_function\r
-+\r
- __doc__ = \\r
- """\r
- pyparsing module - Classes and methods to define and execute parsing grammars\r
-@@ -1554,19 +1556,19 @@ class ParserElement(object):
- run a parse expression against a list of sample strings.\r
- """\r
- for t in tests:\r
-- print t\r
-+ print(t)\r
- try:\r
-- print self.parseString(t).dump()\r
-+ print(self.parseString(t).dump())\r
- except ParseException as pe:\r
- if '\n' in t:\r
-- print line(pe.loc, t)\r
-- print ' '*(col(pe.loc,t)-1) + '^'\r
-+ print(line(pe.loc, t))\r
-+ print(' '*(col(pe.loc,t)-1) + '^')\r
- else:\r
-- print ' '*pe.loc + '^'\r
-- print pe\r
-- print\r
-+ print(' '*pe.loc + '^')\r
-+ print(pe)\r
-+ print()\r
-+\r
- \r
-- \r
- class Token(ParserElement):\r
- """Abstract C{ParserElement} subclass, for defining atomic matching patterns."""\r
- def __init__( self ):\r
-@@ -3803,4 +3805,4 @@ if __name__ == "__main__":
- """\r
- CHANGES\r
- UnitTests.py\r
--"""
-\ No newline at end of file
-+"""\r