[Python-modules-commits] [fparser] 07/09: py3
Alastair McKinstry
mckinstry at moszumanska.debian.org
Fri Jul 28 10:45:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
mckinstry pushed a commit to branch dev-python3
in repository fparser.
commit c6aac62ab80cbe9ac641684c5c3e03ee12cee4a7
Author: Alastair McKinstry <mckinstry at debian.org>
Date: Tue Jul 25 18:52:16 2017 +0100
py3
---
src/fparser/scripts/parse.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/fparser/scripts/parse.py b/src/fparser/scripts/parse.py
index 2fb20db..57f0f0e 100644
--- a/src/fparser/scripts/parse.py
+++ b/src/fparser/scripts/parse.py
@@ -63,6 +63,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
+from __future__ import print_function
import os
import sys
### START UPDATE SYS.PATH ###
@@ -84,11 +85,11 @@ def runner (parser, options, args):
parser.parse()
parser.analyze()
if options.task=='show':
- print parser.block.torepr(4)
+ print (parser.block.torepr(4))
elif options.task == 'none':
pass
else:
- raise NotImplementedError(`options.task`)
+ raise NotImplementedError(repr(options.task))
def main ():
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/fparser.git
More information about the Python-modules-commits
mailing list