Bump Python support to min Python 3.6.0 (#25582)

* Bump Python support to min Python 3.6.0

* Fix type
This commit is contained in:
Paulus Schoutsen 2019-07-30 16:44:39 -07:00 committed by GitHub
parent fe1e761a7a
commit 39b8102ce6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 37 deletions

View file

@ -61,9 +61,7 @@ def disable_c_asyncio() -> None:
def find_module(self, fullname: str, path: Any = None) -> None:
"""Find a module."""
if fullname == self.PATH_TRIGGER:
# We lint in Py35, exception is introduced in Py36
# pylint: disable=undefined-variable
raise ModuleNotFoundError() # type: ignore # noqa
raise ModuleNotFoundError()
sys.path_hooks.append(AsyncioImportFinder)
sys.path.insert(0, AsyncioImportFinder.PATH_TRIGGER)