From 4941691264970b19b81d435cd58ab18ef6bac9a5 Mon Sep 17 00:00:00 2001 From: Simon Feltman Date: Fri, 25 Jul 2014 18:33:15 -0700 Subject: 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 --- examples/properties.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples') 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' -- cgit v1.2.1