Commit 7601551f authored by Dan O'Reilly's avatar Dan O'Reilly

Just always uses BytseIO in text_format for now

Signed-off-by: 's avatarDan O'Reilly <oreilldf@gmail.com>
parent 893b65e4
...@@ -92,9 +92,6 @@ def MessageToString(message, as_utf8=False, as_one_line=False, ...@@ -92,9 +92,6 @@ def MessageToString(message, as_utf8=False, as_one_line=False,
Returns: Returns:
A string of the text formatted protocol buffer message. 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, PrintMessage(message, out, as_utf8=as_utf8, as_one_line=as_one_line,
pointy_brackets=pointy_brackets, pointy_brackets=pointy_brackets,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment