[pyatspi2: 1/2] fix print usage in python3 example



commit 1fefa9ac071909a8fbabaf6fb845bb8bd604828c
Author: Daniel Holbach <daniel holbach ubuntu com>
Date:   Wed May 1 18:23:26 2019 +0200

    fix print usage in python3 example
    
    In python3 the print statement is used with parentheses. This fixes
    installation of the python 3 package.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=684271

 examples/magFocusTracker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/examples/magFocusTracker.py b/examples/magFocusTracker.py
index 47efe00..7ca3b67 100755
--- a/examples/magFocusTracker.py
+++ b/examples/magFocusTracker.py
@@ -282,7 +282,7 @@ def main():
             startTracking()
         pyatspi.Registry.start()
     else:
-        print 'Magnification service not available. Exiting.'
+        print('Magnification service not available. Exiting.')
 
     return 0
 


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