eric6/WebBrowser/OpenSearch/OpenSearchEngine.py

changeset 7269
0c63ea7f94bd
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7268:a28338eaf694 7269:0c63ea7f94bd
9 9
10 10
11 import re 11 import re
12 import json 12 import json
13 13
14 from PyQt5.QtCore import pyqtSignal, pyqtSlot, QLocale, QUrl, QUrlQuery, \ 14 from PyQt5.QtCore import (
15 QByteArray, QBuffer, QIODevice, QObject 15 pyqtSignal, pyqtSlot, QLocale, QUrl, QUrlQuery, QByteArray, QBuffer,
16 QIODevice, QObject
17 )
16 from PyQt5.QtGui import QImage 18 from PyQt5.QtGui import QImage
17 from PyQt5.QtNetwork import QNetworkRequest, QNetworkAccessManager, \ 19 from PyQt5.QtNetwork import (
18 QNetworkReply 20 QNetworkRequest, QNetworkAccessManager, QNetworkReply
21 )
19 22
20 from UI.Info import Program 23 from UI.Info import Program
21 24
22 import Preferences 25 import Preferences
23 import Utilities 26 import Utilities
417 @return flag indicating equality (boolean) 420 @return flag indicating equality (boolean)
418 """ 421 """
419 if not isinstance(other, OpenSearchEngine): 422 if not isinstance(other, OpenSearchEngine):
420 return NotImplemented 423 return NotImplemented
421 424
422 return self._name == other._name and \ 425 return (
423 self._description == other._description and \ 426 self._name == other._name and
424 self._imageUrl == other._imageUrl and \ 427 self._description == other._description and
425 self._searchUrlTemplate == other._searchUrlTemplate and \ 428 self._imageUrl == other._imageUrl and
426 self._suggestionsUrlTemplate == other._suggestionsUrlTemplate and \ 429 self._searchUrlTemplate == other._searchUrlTemplate and
427 self._searchParameters == other._searchParameters and \ 430 self._suggestionsUrlTemplate == other._suggestionsUrlTemplate and
431 self._searchParameters == other._searchParameters and
428 self._suggestionsParameters == other._suggestionsParameters 432 self._suggestionsParameters == other._suggestionsParameters
433 )
429 434
430 def __lt__(self, other): 435 def __lt__(self, other):
431 """ 436 """
432 Special method implementing the < operator. 437 Special method implementing the < operator.
433 438

eric ide

mercurial