mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
fixed a few instances of old-style string formatting
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ FAILED (failures=1)</samp></pre>
|
||||
<a> if not s: <span>①</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
|
||||
|
||||
Reference in New Issue
Block a user