diff options
author | Dan O'Reilly <oreilldf@gmail.com> | 2015-08-14 23:22:47 -0400 |
---|---|---|
committer | Dan O'Reilly <oreilldf@gmail.com> | 2015-08-14 23:22:47 -0400 |
commit | 7601551f7c967da66f0ae1d20fcdd23d77c46b95 (patch) | |
tree | 5bf4dd4960db6f1637925fd7a5cad4a2fd8689f4 /python/google | |
parent | 893b65e4699998b1eac8770ac393b5fd6e032e59 (diff) | |
download | protobuf-7601551f7c967da66f0ae1d20fcdd23d77c46b95.tar.gz protobuf-7601551f7c967da66f0ae1d20fcdd23d77c46b95.tar.bz2 protobuf-7601551f7c967da66f0ae1d20fcdd23d77c46b95.zip |
Just always uses BytseIO in text_format for now
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
Diffstat (limited to 'python/google')
-rwxr-xr-x | python/google/protobuf/text_format.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/python/google/protobuf/text_format.py b/python/google/protobuf/text_format.py index 5e4d10b1..950bec16 100755 --- a/python/google/protobuf/text_format.py +++ b/python/google/protobuf/text_format.py @@ -92,10 +92,7 @@ def MessageToString(message, as_utf8=False, as_one_line=False, Returns: A string of the text formatted protocol buffer message. """ - if as_utf8: - out = io.BytesIO() - else: - out = io.BytesIO() + out = io.BytesIO() PrintMessage(message, out, as_utf8=as_utf8, as_one_line=as_one_line, pointy_brackets=pointy_brackets, use_index_order=use_index_order, |