@@ -59,10 +59,10 @@ def make_zipfile (base_name, base_dir, verbose=0, dry_run=0):
5959 except DistutilsExecError :
6060 # XXX really should distinguish between "couldn't find
6161 # external 'zip' command" and "zip failed".
62- raise DistutilsExecError , \
63- ("unable to create zip file '%s': "
64- "could neither import the 'zipfile' module nor "
65- "find a standalone zip utility" ) % zip_filename
62+ raise DistutilsExecError (
63+ ("unable to create zip file '%s': "
64+ "could neither import the 'zipfile' module nor "
65+ "find a standalone zip utility" ) % zip_filename )
6666
6767 else :
6868 log .info ("creating '%s' and adding '%s' to it" ,
@@ -184,14 +184,14 @@ def finalize_options (self):
184184 try :
185185 self .formats = [self .default_format [os .name ]]
186186 except KeyError :
187- raise DistutilsPlatformError , \
188- "don't know how to create source distributions " + \
189- "on platform %s" % os .name
187+ raise DistutilsPlatformError (
188+ "don't know how to create source distributions "
189+ "on platform %s" % os .name )
190190
191191 bad_format = archive_util .check_archive_formats (self .formats )
192192 if bad_format :
193- raise DistutilsOptionError , \
194- "unknown archive format '%s'" % bad_format
193+ raise DistutilsOptionError (
194+ "unknown archive format '%s'" % bad_format )
195195
196196 if self .dist_dir is None :
197197 self .dist_dir = "dist"
@@ -405,7 +405,7 @@ def read_template (self):
405405
406406 try :
407407 self .filelist .process_template_line (line )
408- except DistutilsTemplateError , msg :
408+ except DistutilsTemplateError as msg :
409409 self .warn ("%s, line %d: %s" % (template .filename ,
410410 template .current_line ,
411411 msg ))
@@ -580,4 +580,4 @@ def run(self):
580580 author_email = 'guillermo@sublimetext.info' ,
581581 url = 'http://sublimetext.info' ,
582582 py_modules = ['sublime_modelines.py' ]
583- )
583+ )
0 commit comments