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:
Michael Manganiello
2021-10-23 22:34:06 -03:00
committed by GitHub
parent 3ff06da2fb
commit 07c52aad38
14 changed files with 22 additions and 30 deletions

View File

@ -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())