Internal Change

PiperOrigin-RevId: 640527247
pull/16936/head
Protobuf Team Bot 10 months ago committed by Copybara-Service
parent 532f0c2ed5
commit e207f27a35
  1. 1
      python/google/protobuf/internal/text_format_test.py
  2. 2
      python/google/protobuf/text_format.py

@ -2408,7 +2408,6 @@ class TokenizerTest(unittest.TestCase):
with self.assertRaises(text_format.ParseError):
text_format.Parse('NotGroupLikeScope { b:1 }', msg)
# Tests for pretty printer functionality.
@_parameterized.parameters((unittest_pb2), (unittest_proto3_arena_pb2))
class PrettyPrinterTest(TextFormatBase):

@ -1809,7 +1809,7 @@ def ParseFloat(text):
try:
return float(text.rstrip('f'))
except ValueError:
raise ValueError('Couldn\'t parse float: %s' % text)
raise ValueError("Couldn't parse float: %s" % text)
def ParseBool(text):

Loading…
Cancel
Save