Merge pull request #24099 from gnossen/importlib_abc

Make version check for importlib.abc in grpcio-tools more stringent (backport of #24098 to 1.32)
pull/24101/head
Richard Belleville 4 years ago committed by GitHub
commit b3f7aa21c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tools/distrib/python/grpcio_tools/grpc_tools/protoc.py

@ -38,7 +38,8 @@ def main(command_arguments):
return _protoc_compiler.run_main(command_arguments)
if sys.version_info[0] > 2:
# NOTE(rbellevi): importlib.abc is not supported on 3.4.
if sys.version_info >= (3, 5, 0):
import contextlib
import importlib
import importlib.machinery

Loading…
Cancel
Save