From: Hefee Date: Sun, 22 Mar 2015 16:49:09 +0000 (+0100) Subject: fix python3 syntax errors X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1892^2~1^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b1100cd9e5cf7748b953e6ccecca8f6e90644f7e;p=nextcloud-desktop.git fix python3 syntax errors --- diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py index 0b5e37dff..bfa18ee55 100755 --- a/shell_integration/nautilus/syncstate.py +++ b/shell_integration/nautilus/syncstate.py @@ -67,7 +67,7 @@ class SocketConnect(GObject.GObject): print("Sending failed.") self.reconnect() else: - print "Cannot send, not connected!" + print("Cannot send, not connected!") def addListener(self, listener): self._listeners.append(listener) @@ -85,7 +85,7 @@ class SocketConnect(GObject.GObject): self.connected = True print("Setting connected to %r" % self.connected ) self._watch_id = GObject.io_add_watch(self._sock, GObject.IO_IN, self._handle_notify) - print "Socket watch id: "+str(self._watch_id) + print("Socket watch id: "+str(self._watch_id)) return False # don't run again except Exception as e: print("Could not connect to unix socket." + str(e)) @@ -175,7 +175,7 @@ class MenuExtension(GObject.GObject, Nautilus.MenuProvider): def menu_share(self, menu, file): filename = get_local_path(file.get_uri()) - print "Share file "+filename + print("Share file "+filename) socketConnect.sendCommand("SHARE:"+filename+"\n")