Commit b83af525 authored by Adam Cozzette's avatar Adam Cozzette

Fixed string formatting in text_format.py to be Python2.6-compatible

In Python 2.6 the positional argument specifiers are apparently required
to be explicitly specified:
http://stackoverflow.com/questions/10054122/valueerror-zero-length-field-name-in-format-python
parent d64a2d99
......@@ -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:
......
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