fix error message in roman2.py

This commit is contained in:
Mark Pilgrim
2009-08-19 21:49:12 -04:00
parent 7b5a4b1899
commit 331dde2c82
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ roman_numeral_map = (('M', 1000),
def to_roman(n):
'''convert integer to Roman numeral'''
if n > 3999:
raise OutOfRangeError('number out of range (must be less than 3999)')
raise OutOfRangeError('number out of range (must be less than 4000)')
result = ''
for numeral, integer in roman_numeral_map:
+1 -1
View File
@@ -319,7 +319,7 @@ FAILED (failures=1)</samp></pre>
<pre class=pp><code>def to_roman(n):
'''convert integer to Roman numeral'''
if n > 3999:
<a> raise OutOfRangeError('number out of range (must be less than 3999)') <span class=u>&#x2460;</span></a>
<a> raise OutOfRangeError('number out of range (must be less than 4000)') <span class=u>&#x2460;</span></a>
result = ''
for numeral, integer in roman_numeral_map: