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

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