eric6/Cooperation/CooperationClient.py

changeset 7250
d8bdc55aee1a
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/Cooperation/CooperationClient.py	Thu Sep 19 19:39:04 2019 +0200
+++ b/eric6/Cooperation/CooperationClient.py	Sat Sep 21 13:03:17 2019 +0200
@@ -11,8 +11,9 @@
 import collections
 
 from PyQt5.QtCore import QObject, pyqtSignal, QProcess, QRegExp
-from PyQt5.QtNetwork import QHostInfo, QHostAddress, QAbstractSocket, \
-    QNetworkInterface
+from PyQt5.QtNetwork import (
+    QHostInfo, QHostAddress, QAbstractSocket, QNetworkInterface
+)
 
 from .CooperationServer import CooperationServer
 from .Connection import Connection
@@ -161,8 +162,8 @@
         @param connection reference to the connection to be removed
             (Connection)
         """
-        if connection.peerAddress() in self.__peers and \
-           connection in self.__peers[connection.peerAddress()]:
+        if (connection.peerAddress() in self.__peers and
+                connection in self.__peers[connection.peerAddress()]):
             self.__peers[connection.peerAddress()].remove(connection)
             nick = connection.name()
             if nick != "":

eric ide

mercurial