Sanitize grpcio-tools command arguments

pull/6791/head
Masood Malekghassemi 9 years ago
parent ac586ba21e
commit 6db60b9041
  1. 1
      tools/distrib/python/grpcio_tools/grpc/tools/protoc.py

@ -41,6 +41,7 @@ def main(command_arguments):
command_arguments: a list of strings representing command line arguments to
`protoc`.
"""
command_arguments = [argument.encode() for argument in command_arguments]
return _protoc_compiler.run_main(command_arguments)
if __name__ == '__main__':

Loading…
Cancel
Save