]> git.scottworley.com Git - git-cache/blobdiff - test_git_cache.py
New pylint likes explicit encodings
[git-cache] / test_git_cache.py
index cc3cf3533715ed16e87198e9fb426215b13e5a7b..e97a788cd726b307791c95e55a1a00a90d4c1939 100644 (file)
@@ -27,7 +27,7 @@ def _commit_file(
         filename: str,
         contents: str,
         commit_message: str) -> None:
-    with open(os.path.join(directory, filename), 'w') as f:
+    with open(os.path.join(directory, filename), 'w', encoding='utf-8') as f:
         f.write(contents)
     _git(directory, 'add', filename)
     _git(directory, 'commit', '-m', commit_message)