eric6/Network/IRC/IrcMessageEdit.py

changeset 7255
d595f6f9cbf8
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/Network/IRC/IrcMessageEdit.py	Sat Sep 21 17:41:22 2019 +0200
+++ b/eric6/Network/IRC/IrcMessageEdit.py	Sat Sep 21 18:30:02 2019 +0200
@@ -89,8 +89,10 @@
         @param txt text to be added to the history (string)
         """
         # Only add the entry, if it is not the same as last time
-        if len(self.__historyList) == 1 or \
-           (len(self.__historyList) > 1 and self.__historyList[1] != txt):
+        if (
+            len(self.__historyList) == 1 or
+            (len(self.__historyList) > 1 and self.__historyList[1] != txt)
+        ):
             # Replace empty first entry and add new empty first entry
             self.__historyList[0] = txt
             self.__historyList.insert(0, "")

eric ide

mercurial