aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/distrib/python/grpcio_tools/grpc
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <atash@google.com>2016-06-13 12:16:33 -0700
committerGravatar Masood Malekghassemi <atash@google.com>2016-07-01 10:18:46 -0700
commit6db60b9041ce8d7bf33254d2daa87ccafd493498 (patch)
treeda55cff1c23c13c803379da261694f6ad2770e52 /tools/distrib/python/grpcio_tools/grpc
parentac586ba21e385319a17b8150b1cd681b96807898 (diff)
Sanitize grpcio-tools command arguments
Diffstat (limited to 'tools/distrib/python/grpcio_tools/grpc')
-rw-r--r--tools/distrib/python/grpcio_tools/grpc/tools/protoc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/distrib/python/grpcio_tools/grpc/tools/protoc.py b/tools/distrib/python/grpcio_tools/grpc/tools/protoc.py
index 931fda27d2..e1256a7dd9 100644
--- a/tools/distrib/python/grpcio_tools/grpc/tools/protoc.py
+++ b/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__':