diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-04-28 15:34:14 -0700 |
---|---|---|
committer | Thomas A Caswell <tcaswell@gmail.com> | 2015-09-29 15:10:33 -0400 |
commit | 06166e54cea2302bf9213f18881495eb2b5d089d (patch) | |
tree | 3185ab3f0e7c27a905ba81b283cd71ee44a53fc6 /giscanner/maintransformer.py | |
parent | 8d6456344b80fa5f8f745fc92e364ee8b6a75cbf (diff) | |
download | gobject-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 'giscanner/maintransformer.py')
-rw-r--r-- | giscanner/maintransformer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index c8288536..72909b34 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -19,6 +19,7 @@ from __future__ import absolute_import from __future__ import division +from __future__ import print_function import re @@ -825,7 +826,7 @@ class MainTransformer(object): try: self._adjust_container_type(parent, field, tag.annotations) except AttributeError as ex: - print ex + print(ex) def _apply_annotations_property(self, parent, prop): prefix = self._get_annotation_name(parent) |