Make version check more stringent

pull/24099/head
Richard Belleville 4 years ago
parent 414bb8322d
commit 0e24177fc3
  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