mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-28 20:52:57 +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
@ -37,7 +37,6 @@ def main():
|
||||
root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
with open(
|
||||
os.path.join(root_path, _template_dir, _template_name),
|
||||
"r",
|
||||
encoding="utf-8",
|
||||
) as template:
|
||||
setuppy_tmpl = Template(template.read())
|
||||
|
Reference in New Issue
Block a user