avoid needless list construction
[lilass.git] / gui.py
diff --git a/gui.py b/gui.py
index a87b82f1d69bec3302e07e950ccb5ca5da56aca4..c0697614408a251d396077159ff3d41edb1ce55e 100644 (file)
--- a/gui.py
+++ b/gui.py
@@ -36,7 +36,7 @@ class QtFrontend:
        def __init__(self):
                from PyQt4 import QtGui
                self.app = QtGui.QApplication(sys.argv)
-               print "Qt loaded"
+               print("Qt loaded")
        
        def error(self, message):
                from PyQt4 import QtGui
@@ -78,7 +78,7 @@ class ZenityFrontend:
 # CLI frontend
 class CLIFrontend:
        def error(self, message):
-               print >> sys.stderr, message
+               print(message, file=sys.stderr)
        
        def setup(self, internalResolutions, externalResolutions):
                raise Exception("Choosing the setup interactively is not supported with the CLI frontend")