mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-27 04:03:09 +08:00
Refactor code using pyupgrade for Python 3.6 (#770)
* Refactor code using pyupgrade for Python 3.6 This diff is the result of applying the following command to the project: ```shell find . -type f -name "*.py" -exec pyupgrade --py36-plus '{}' + ``` * Simplify yield from
This commit is contained in:

committed by
GitHub

parent
3ff06da2fb
commit
07c52aad38
@ -83,7 +83,7 @@ def main():
|
||||
source = astor.to_source(tree)
|
||||
|
||||
with open(
|
||||
os.path.join(scripts_path, "license_header.txt"), "r", encoding="utf-8"
|
||||
os.path.join(scripts_path, "license_header.txt"), encoding="utf-8"
|
||||
) as header_file:
|
||||
header = header_file.read()
|
||||
source = _template.format(header=header, source=source)
|
||||
|
Reference in New Issue
Block a user