Commits

Yuya Nishihara committed 8c5f2f5

qtapp: remove unused default from connectToExistingWorkbench()

Comments (0)

Files changed (1)

tortoisehg/hgqt/qtapp.py

         except ImportError:
             pass
 
-def connectToExistingWorkbench(root=None):
+def connectToExistingWorkbench(root):
     """
     Connect and send data to an existing workbench server
 
     also send "echo" to check that the connection works (i.e. that there is a
     server)
     """
-    if root:
-        data = root
-    else:
-        data = '[echo]'
+    data = root
     servername = QApplication.applicationName() + '-' + util.getuser()
     socket = QLocalSocket()
     socket.connectToServer(servername, QIODevice.ReadWrite)