Fixed a bug in cl/600990001 -- we need to propagate the as_utf8 parameter that was passed.

PiperOrigin-RevId: 601109776
pull/15565/head
Joshua Haberman 1 year ago committed by Copybara-Service
parent 3d7e4d6347
commit af339fad1e
  1. 2
      python/google/protobuf/text_format.py

@ -231,7 +231,7 @@ def PrintMessage(message,
the field is a proto message.
"""
printer = _Printer(
out=out, indent=indent, as_utf8=_as_utf8_default,
out=out, indent=indent, as_utf8=as_utf8,
as_one_line=as_one_line,
use_short_repeated_primitives=use_short_repeated_primitives,
pointy_brackets=pointy_brackets,

Loading…
Cancel
Save