fixed a few instances of old-style string formatting

This commit is contained in:
Mark Pilgrim
2009-06-01 10:45:52 -07:00
parent c44e381d2a
commit 6822e16b62
4 changed files with 56 additions and 48 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ FAILED (failures=1)</samp></pre>
<a> if not s: <span>&#x2460;</span></a>
raise InvalidRomanNumeralError, 'Input can not be blank'
if not re.search(romanNumeralPattern, s):
raise InvalidRomanNumeralError, 'Invalid Roman numeral: %s' % s
raise InvalidRomanNumeralError, 'Invalid Roman numeral: {0}'.format(s)
result = 0
index = 0