summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-07-25 18:33:15 -0700
committerSimon Feltman <sfeltman@src.gnome.org>2014-07-25 18:35:30 -0700
commit4941691264970b19b81d435cd58ab18ef6bac9a5 (patch)
tree1d9105807879292968ef08792c45e1a2d5f6a071 /examples
parentc3d3cd2f798cbae7f66d8e57e191b5f9569a713b (diff)
downloadpygobject-4941691264970b19b81d435cd58ab18ef6bac9a5.tar.gz
pyflakes: Fix legacy print and exception usage under Python 3
Fix print statements and legacy exception usage in examples. https://bugzilla.gnome.org/show_bug.cgi?id=731042
Diffstat (limited to 'examples')
-rw-r--r--examples/properties.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/properties.py b/examples/properties.py
index 465b3c3c..4c8a20c0 100644
--- a/examples/properties.py
+++ b/examples/properties.py
@@ -15,18 +15,18 @@ class MyObject(GObject.GObject):
GObject.type_register(MyObject)
-print "MyObject properties: ", list(MyObject.props)
+print("MyObject properties: ", list(MyObject.props))
obj = MyObject()
-print "obj.foo ==", obj.foo
+print("obj.foo ==", obj.foo)
obj.foo = 'spam'
-print "obj.foo = spam"
+print("obj.foo = spam")
-print "obj.foo == ", obj.foo
+print("obj.foo == ", obj.foo)
-print "obj.boolprop == ", obj.boolprop
+print("obj.boolprop == ", obj.boolprop)
-print obj.readonly
+print(obj.readonly)
obj.readonly = 'does-not-work'