running libfuturize.fixes.fix_raise
This commit is contained in:
@@ -1131,7 +1131,7 @@ class Server(object):
|
|||||||
is passed at initialization time, this must be implemented by
|
is passed at initialization time, this must be implemented by
|
||||||
a subclass.
|
a subclass.
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError, self.__class__.__name__ + '.handler'
|
raise NotImplementedError(self.__class__.__name__ + '.handler')
|
||||||
|
|
||||||
def error(self, req):
|
def error(self, req):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -415,7 +415,7 @@ class Image( RawCode ) :
|
|||||||
fin = infile
|
fin = infile
|
||||||
if 'datatype' not in kwargs.keys():
|
if 'datatype' not in kwargs.keys():
|
||||||
msg = "If passing in a file object, you must also specify type='xxx' where xxx is one of %s" % self.PICT_TYPES.keys()
|
msg = "If passing in a file object, you must also specify type='xxx' where xxx is one of %s" % self.PICT_TYPES.keys()
|
||||||
raise ValueError,msg
|
raise ValueError(msg)
|
||||||
file_name = kwargs.pop('datatype')
|
file_name = kwargs.pop('datatype')
|
||||||
else:
|
else:
|
||||||
fin = file( infile, 'rb' )
|
fin = file( infile, 'rb' )
|
||||||
|
|||||||
@@ -529,7 +529,7 @@ class Sheet:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if not self.regex.match(key):
|
if not self.regex.match(key):
|
||||||
raise SyntaxError, "Invalid cell name: %s" % key
|
raise SyntaxError("Invalid cell name: %s" % key)
|
||||||
else:
|
else:
|
||||||
attributes = self.get_attributes(kwarg)
|
attributes = self.get_attributes(kwarg)
|
||||||
if attributes is not None:
|
if attributes is not None:
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ def custom_importer(name, globals=None, locals=None, fromlist=None, level=-1):
|
|||||||
try:
|
try:
|
||||||
result = result or sys.modules[modules_prefix+'.'+itemname]
|
result = result or sys.modules[modules_prefix+'.'+itemname]
|
||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
raise ImportError, 'Cannot import module %s' % str(e)
|
raise ImportError('Cannot import module %s' % str(e))
|
||||||
modules_prefix += "." + itemname
|
modules_prefix += "." + itemname
|
||||||
return result
|
return result
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user