diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2021-07-03 16:08:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-03 16:08:42 +0000 |
| commit | 6ae8ae6c7bc15e88aa82e920fc6332a2937fd953 (patch) | |
| tree | 43c73f03842f23bc48010cd9c29572cd19c01bda /searx/search | |
| parent | 961dd287a11a2fbac9e11277b4bd5fdca0f4eaa7 (diff) | |
| parent | 19e2b7236776228b2ea3b05b106a5e68ac9b557d (diff) | |
Merge pull request #190 from searxng/dependabot/pip/master/pylint-2.9.3
Bump pylint from 2.8.3 to 2.9.3
Diffstat (limited to 'searx/search')
| -rw-r--r-- | searx/search/checker/__main__.py | 12 | ||||
| -rw-r--r-- | searx/search/processors/__init__.py | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/searx/search/checker/__main__.py b/searx/search/checker/__main__.py index 7a85347cc..e1de860b7 100644 --- a/searx/search/checker/__main__.py +++ b/searx/search/checker/__main__.py @@ -34,8 +34,16 @@ else: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = "", "", "", "", "", "", "", "" # equivalent of 'python -u' (unbuffered stdout, stderr) -stdout = io.TextIOWrapper(open(sys.stdout.fileno(), 'wb', 0), write_through=True) -stderr = io.TextIOWrapper(open(sys.stderr.fileno(), 'wb', 0), write_through=True) +stdout = io.TextIOWrapper( + # pylint: disable=consider-using-with + open(sys.stdout.fileno(), 'wb', 0), + write_through=True +) +stderr = io.TextIOWrapper( + # pylint: disable=consider-using-with + open(sys.stderr.fileno(), 'wb', 0) + , write_through=True +) # iterator of processors diff --git a/searx/search/processors/__init__.py b/searx/search/processors/__init__.py index d5ebdb70c..b3d121f0e 100644 --- a/searx/search/processors/__init__.py +++ b/searx/search/processors/__init__.py @@ -17,7 +17,7 @@ __all__ = [ import threading from searx import logger -import searx.engines as engines +from searx import engines from .online import OnlineProcessor from .offline import OfflineProcessor |