diff options
author | 2016-06-13 12:16:33 -0700 | |
---|---|---|
committer | 2016-07-01 10:18:46 -0700 | |
commit | 6db60b9041ce8d7bf33254d2daa87ccafd493498 (patch) | |
tree | da55cff1c23c13c803379da261694f6ad2770e52 | |
parent | ac586ba21e385319a17b8150b1cd681b96807898 (diff) |
Sanitize grpcio-tools command arguments
-rw-r--r-- | tools/distrib/python/grpcio_tools/grpc/tools/protoc.py | 1 |
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__': |