| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Filter all code over `pyupgrade --py38-plus`. Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
"requires-python = '>=3.8.0'" in pyproject.toml is enough. Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
There was a problem hiding this comment.
Thanks for the PR! I feel neutral about most of the changes here, but still approving.
Sorry, something went wrong.
| vi = sys.version_info | ||
| if vi < (3, 8): | ||
| raise RuntimeError('uvloop requires Python 3.8 or greater') | ||
|
|
There was a problem hiding this comment.
"requires-python = '>=3.8.0'" in pyproject.toml is enough.
I'd keep this extra check. For people who uses Python < 3.8, they may also have a pip around year 2016 or earlier, which doesn't honor requires-python.
Sorry, something went wrong.
There was a problem hiding this comment.
unused import io now
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Filter all code over pyupgrade --py38-plus.