mirror of
https://github.com/searxng/searxng.git
synced 2025-07-19 03:09:25 +02:00
[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>
This commit is contained in:
parent
b83c14cf6b
commit
e856b563dd
3 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue