diff --git a/refactoring.html b/refactoring.html index 8a1b621..e883e09 100755 --- a/refactoring.html +++ b/refactoring.html @@ -242,7 +242,7 @@ FAILED (errors=3) def to_roman(n): '''convert integer to Roman numeral''' - if not (0 < n < 5000): ② + if not (0 < n < 5000): ② raise OutOfRangeError('number out of range (must be 0..4999)') if not isinstance(n, int): raise NotIntegerError('non-integers can not be converted') @@ -328,7 +328,7 @@ from_roman_table = {} def to_roman(n): '''convert integer to Roman numeral''' - if not (0 < n < 5000): + if not (0 < n < 5000): raise OutOfRangeError('number out of range (must be 1..4999)') if int(n) != n: raise NotIntegerError('non-integers can not be converted') @@ -402,7 +402,7 @@ def build_lookup_tables():
def to_roman(n):
'''convert integer to Roman numeral'''
- if not (0 < n < 5000):
+ if not (0 < n < 5000):
raise OutOfRangeError('number out of range (must be 1..4999)')
if int(n) != n:
raise NotIntegerError('non-integers can not be converted')