Skip to content

Commit

Permalink
Merge pull request #685 from PyWarnFixerRepos/unspecified-encoding
Browse files Browse the repository at this point in the history
Fix pylint warning `unspecified-encoding`
  • Loading branch information
jaraco authored Jun 30, 2024
2 parents 8e4e1d6 + c9cfc7d commit 6c1f10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyring/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def disable() -> None:
if os.path.exists(filename):
msg = f"Refusing to overwrite {filename}"
raise RuntimeError(msg)
with open(filename, 'w') as file:
with open(filename, 'w', encoding='utf-8') as file:
file.write('[backend]\ndefault-keyring=keyring.backends.null.Keyring')


Expand Down

0 comments on commit 6c1f10e

Please sign in to comment.