[totem/wip/python3: 5/5] Port sample python plugin to python 3



commit e259550467fce340a2caec92386ba24ccb6e916c
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Apr 29 17:40:42 2013 +0200

    Port sample python plugin to python 3

 src/plugins/samplepython/samplepython.plugin.in |    2 +-
 src/plugins/samplepython/samplepython.py        |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/samplepython/samplepython.plugin.in b/src/plugins/samplepython/samplepython.plugin.in
index 48eec9c..c181497 100644
--- a/src/plugins/samplepython/samplepython.plugin.in
+++ b/src/plugins/samplepython/samplepython.plugin.in
@@ -1,5 +1,5 @@
 [Plugin]
-Loader=python
+Loader=python3
 Module=samplepython
 IAge=1
 _Name=Python Sample Plugin
diff --git a/src/plugins/samplepython/samplepython.py b/src/plugins/samplepython/samplepython.py
index 0630328..1d2bbcf 100644
--- a/src/plugins/samplepython/samplepython.py
+++ b/src/plugins/samplepython/samplepython.py
@@ -11,9 +11,9 @@ class SamplePython (GObject.Object, Peas.Activatable):
         GObject.Object.__init__ (self)
 
     def do_activate (self):
-        print "Activating sample Python plugin"
+        print("Activating sample Python plugin")
         self.object.action_fullscreen_toggle ()
 
     def do_deactivate (self):
-        print "Deactivating sample Python plugin"
+        print("Deactivating sample Python plugin")
         self.object.action_fullscreen_toggle ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]