eric6/WebBrowser/OpenSearch/OpenSearchEngine.py

changeset 7269
0c63ea7f94bd
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/WebBrowser/OpenSearch/OpenSearchEngine.py	Wed Sep 25 18:48:22 2019 +0200
+++ b/eric6/WebBrowser/OpenSearch/OpenSearchEngine.py	Wed Sep 25 18:52:40 2019 +0200
@@ -11,11 +11,14 @@
 import re
 import json
 
-from PyQt5.QtCore import pyqtSignal, pyqtSlot, QLocale, QUrl, QUrlQuery, \
-    QByteArray, QBuffer, QIODevice, QObject
+from PyQt5.QtCore import (
+    pyqtSignal, pyqtSlot, QLocale, QUrl, QUrlQuery, QByteArray, QBuffer,
+    QIODevice, QObject
+)
 from PyQt5.QtGui import QImage
-from PyQt5.QtNetwork import QNetworkRequest, QNetworkAccessManager, \
-    QNetworkReply
+from PyQt5.QtNetwork import (
+    QNetworkRequest, QNetworkAccessManager, QNetworkReply
+)
 
 from UI.Info import Program
 
@@ -419,13 +422,15 @@
         if not isinstance(other, OpenSearchEngine):
             return NotImplemented
         
-        return self._name == other._name and \
-            self._description == other._description and \
-            self._imageUrl == other._imageUrl and \
-            self._searchUrlTemplate == other._searchUrlTemplate and \
-            self._suggestionsUrlTemplate == other._suggestionsUrlTemplate and \
-            self._searchParameters == other._searchParameters and \
+        return (
+            self._name == other._name and
+            self._description == other._description and
+            self._imageUrl == other._imageUrl and
+            self._searchUrlTemplate == other._searchUrlTemplate and
+            self._suggestionsUrlTemplate == other._suggestionsUrlTemplate and
+            self._searchParameters == other._searchParameters and
             self._suggestionsParameters == other._suggestionsParameters
+        )
     
     def __lt__(self, other):
         """

eric ide

mercurial