Just always uses BytseIO in text_format for now

Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
pull/722/head
Dan O'Reilly 10 years ago
parent 893b65e469
commit 7601551f7c
  1. 3
      python/google/protobuf/text_format.py

@ -92,9 +92,6 @@ 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()
PrintMessage(message, out, as_utf8=as_utf8, as_one_line=as_one_line,
pointy_brackets=pointy_brackets,

Loading…
Cancel
Save