summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.py
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 /giscanner/sourcescanner.py
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 'giscanner/sourcescanner.py')
-rw-r--r--giscanner/sourcescanner.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index 8f145028..b6f2dc4d 100644
--- a/giscanner/sourcescanner.py
+++ b/giscanner/sourcescanner.py
@@ -21,6 +21,7 @@
from __future__ import with_statement
from __future__ import absolute_import
from __future__ import division
+from __future__ import print_function
import os
import subprocess
@@ -273,9 +274,9 @@ class SourceScanner(object):
return self._scanner.get_comments()
def dump(self):
- print '-' * 30
+ print('-' * 30)
for symbol in self._scanner.get_symbols():
- print symbol.ident, symbol.base_type.name, symbol.type
+ print(symbol.ident, symbol.base_type.name, symbol.type)
# Private