Apply some pyupgrade suggestions
io.open() is an alias for for the builtin open() function: https://docs.python.org/3/library/io.html#io.open If open() cannot open a file, an OSError is raised: https://docs.python.org/3/library/functions.html#open EnvironmentError is kept for compatibility with previous versions; starting from Python 3.3, it is an alias of OSError: https://docs.python.org/3/library/exceptions.html#EnvironmentError Directly yield from an iterable instead of iterating to yield items.pull/523/head
parent
5b21a3d9ea
commit
5ac3ed4490
Loading…
Reference in New Issue