From e75710497672d342a987e1505ec7975314c0c45c Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Tue, 22 Sep 2009 16:48:59 -0400 Subject: [PATCH] syntax error in raise statement --- refactoring.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/refactoring.html b/refactoring.html index e0fb975..06c87cc 100755 --- a/refactoring.html +++ b/refactoring.html @@ -73,9 +73,9 @@ FAILED (failures=1)
def from_roman(s):
     '''convert Roman numeral to integer'''
     if not s:                                                                  
-        raise InvalidRomanNumeralError, 'Input can not be blank'
+        raise InvalidRomanNumeralError('Input can not be blank')
     if not re.search(romanNumeralPattern, s):
-        raise InvalidRomanNumeralError, 'Invalid Roman numeral: {}'.format(s)  
+        raise InvalidRomanNumeralError('Invalid Roman numeral: {}'.format(s))  
 
     result = 0
     index = 0