Merge pull request #24098 from gnossen/grpc_tools_3.4

Make version check for importlib.abc in grpcio-tools more stringent
pull/24095/head
Richard Belleville 4 years ago committed by GitHub
commit 42ffc7a033
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) 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 contextlib
import importlib import importlib
import importlib.machinery import importlib.machinery

Loading…
Cancel
Save