removed BaseException = Exception logic, thanks Jonathan

This commit is contained in:
mdipierro
2013-06-30 11:29:43 -05:00
parent 480ea80ed8
commit ad8c1165b7
4 changed files with 14 additions and 32 deletions
+1 -9
View File
@@ -51,18 +51,10 @@ defined_status = {
505: 'HTTP VERSION NOT SUPPORTED',
}
# If web2py is executed with python2.4 we need
# to use Exception instead of BaseException
try:
BaseException
except NameError:
BaseException = Exception
regex_status = re.compile('^\d{3} \w+$')
class HTTP(BaseException):
class HTTP(Exception):
def __init__(
self,