mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-27 04:03:09 +08:00
update open calls to pass encoding (#684)
This commit is contained in:
@ -85,12 +85,12 @@ def main():
|
||||
source = astor.to_source(tree)
|
||||
|
||||
with open(
|
||||
os.path.join(scripts_path, "license_header.txt"), "r"
|
||||
os.path.join(scripts_path, "license_header.txt"), "r", encoding="utf-8"
|
||||
) as header_file:
|
||||
header = header_file.read()
|
||||
source = _template.format(header=header, source=source)
|
||||
|
||||
with open(gen_path, "w") as gen_file:
|
||||
with open(gen_path, "w", encoding="utf-8") as gen_file:
|
||||
gen_file.write(source)
|
||||
|
||||
subprocess.run(
|
||||
|
Reference in New Issue
Block a user