summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-04-28 15:34:14 -0700
committerThomas A Caswell <tcaswell@gmail.com>2015-09-29 15:10:33 -0400
commit06166e54cea2302bf9213f18881495eb2b5d089d (patch)
tree3185ab3f0e7c27a905ba81b283cd71ee44a53fc6 /tools
parent8d6456344b80fa5f8f745fc92e364ee8b6a75cbf (diff)
downloadgobject-introspection-06166e54cea2302bf9213f18881495eb2b5d089d.tar.gz
giscanner: Use print as a function for Python 3 compatibility
Use future import "print_function" and update relevant uses of print as a function call. See: PEP 3105 https://bugzilla.gnome.org/show_bug.cgi?id=679438
Diffstat (limited to 'tools')
-rw-r--r--tools/g-ir-tool-template.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/g-ir-tool-template.in b/tools/g-ir-tool-template.in
index b3eb29ab..b7aaf4f0 100644
--- a/tools/g-ir-tool-template.in
+++ b/tools/g-ir-tool-template.in
@@ -20,6 +20,7 @@
#
from __future__ import absolute_import
from __future__ import division
+from __future__ import print_function
import os
import sys
import __builtin__
@@ -36,7 +37,7 @@ if debug:
pydevd.settrace()
else:
def on_exception(exctype, value, tb):
- print "Caught exception: %r %r" % (exctype, value)
+ print("Caught exception: %r %r" % (exctype, value))
import pdb
pdb.pm()
sys.excepthook = on_exception