summaryrefslogtreecommitdiff
path: root/searx/version.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-08-31 10:49:36 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-08-31 10:49:36 +0200
commite856b563dd0af5447d51a7c8c4fae5ea697befc2 (patch)
treededec3c6b2141c5641c1f1686cec242689a87f45 /searx/version.py
parentb83c14cf6b2114686165c5aa568b34851b680970 (diff)
downloadsearxng-e856b563dd0af5447d51a7c8c4fae5ea697befc2.tar.gz
searxng-e856b563dd0af5447d51a7c8c4fae5ea697befc2.zip
[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 <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/version.py')
-rw-r--r--searx/version.py4
1 files changed, 2 insertions, 2 deletions
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: