update open calls to pass encoding (#684)

This commit is contained in:
alrex
2021-09-22 10:16:14 -07:00
committed by GitHub
parent 1cf5021bb6
commit 354bdc42d9
44 changed files with 86 additions and 84 deletions

View File

@ -46,7 +46,7 @@ VERSION_FILENAME = os.path.join(
"sqlalchemy",
"version.py",
)
with open(VERSION_FILENAME) as f:
with open(VERSION_FILENAME, encoding="utf-8") as f:
exec(f.read(), PACKAGE_INFO)
PACKAGE_FILENAME = os.path.join(
@ -57,7 +57,7 @@ PACKAGE_FILENAME = os.path.join(
"sqlalchemy",
"package.py",
)
with open(PACKAGE_FILENAME) as f:
with open(PACKAGE_FILENAME, encoding="utf-8") as f:
exec(f.read(), PACKAGE_INFO)
# Mark any instruments/runtime dependencies as test dependencies as well.