From 06166e54cea2302bf9213f18881495eb2b5d089d Mon Sep 17 00:00:00 2001 From: Simon Feltman Date: Mon, 28 Apr 2014 15:34:14 -0700 Subject: 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 --- giscanner/girwriter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'giscanner/girwriter.py') diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index a3447060..aafedc64 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -22,6 +22,7 @@ from __future__ import with_statement from __future__ import absolute_import from __future__ import division +from __future__ import print_function from . import ast from .xmlwriter import XMLWriter @@ -118,7 +119,7 @@ class GIRWriter(XMLWriter): elif isinstance(node, ast.Constant): self._write_constant(node) else: - print 'WRITER: Unhandled node', node + print('WRITER: Unhandled node', node) def _append_version(self, node, attrs): if node.version: -- cgit v1.2.1