From e856b563dd0af5447d51a7c8c4fae5ea697befc2 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 31 Aug 2021 10:49:36 +0200 Subject: [pylint] Pylint 2.10 - unspecified-encoding Pylint 2.10 added new default checks [1]: unspecified-encoding: Emitted when open() is called without specifying an encoding [2] [1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html [2] https://github.com/PyCQA/pylint/issues/3826 Signed-off-by: Markus Heiser --- searx/version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/version.py') diff --git a/searx/version.py b/searx/version.py index 34c37bd22..daada6020 100644 --- a/searx/version.py +++ b/searx/version.py @@ -126,8 +126,8 @@ GIT_URL = "{GIT_URL}" GIT_BRANCH = "{GIT_BRANCH}" """ with open( - os.path.join(os.path.dirname(__file__), "version_frozen.py"), "w" - ) as f: + os.path.join(os.path.dirname(__file__), "version_frozen.py"), + "w", encoding="utf8") as f: f.write(python_code) print(f"{f.name} created") else: -- cgit v1.2.3