mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 13:43:03 +08:00
update open calls to pass encoding (#684)
This commit is contained in:
@ -41,13 +41,13 @@ PACKAGE_INFO = {}
|
||||
VERSION_FILENAME = os.path.join(
|
||||
BASE_DIR, "src", "opentelemetry", "instrumentation", "dbapi", "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(
|
||||
BASE_DIR, "src", "opentelemetry", "instrumentation", "dbapi", "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.
|
||||
|
Reference in New Issue
Block a user