Apply pyupgrade automatically

This commit is contained in:
Pierre Sassoulas 2024-06-11 09:24:19 +02:00
parent e53801f66c
commit 36de6e6a47
1 changed files with 2 additions and 2 deletions

View File

@ -221,9 +221,9 @@ class Cache:
os.umask(umask)
path.chmod(0o777 - umask)
with open(path.joinpath("README.md"), "xt", encoding="UTF-8") as f:
with open(path.joinpath("README.md"), "x", encoding="UTF-8") as f:
f.write(README_CONTENT)
with open(path.joinpath(".gitignore"), "xt", encoding="UTF-8") as f:
with open(path.joinpath(".gitignore"), "x", encoding="UTF-8") as f:
f.write("# Created by pytest automatically.\n*\n")
with open(path.joinpath("CACHEDIR.TAG"), "xb") as f:
f.write(CACHEDIR_TAG_CONTENT)