aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpython/google/protobuf/text_format.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/google/protobuf/text_format.py b/python/google/protobuf/text_format.py
index c4b23c37..06b79d77 100755
--- a/python/google/protobuf/text_format.py
+++ b/python/google/protobuf/text_format.py
@@ -81,8 +81,8 @@ class ParseError(Error):
if message is not None and line is not None:
loc = str(line)
if column is not None:
- loc += ':{}'.format(column)
- message = '{} : {}'.format(loc, message)
+ loc += ':{0}'.format(column)
+ message = '{0} : {1}'.format(loc, message)
if message is not None:
super(ParseError, self).__init__(message)
else: