1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed 8c5f2f5

qtapp: remove unused default from connectToExistingWorkbench()

  • Participants
  • Parent commits 5e8b450
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/qtapp.py

View file
         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)