Bug 1270317 - Use modern exception syntax in purgelong; r=jlund
authorGregory Szorc <gps@mozilla.com>
Fri, 06 May 2016 10:49:51 -0700
changeset 296438 e679c2e0b1b5d8e6ec19deaa44dbbdf9bcf31383
parent 296437 b01744f2d97d0d3c6bb5a53dc58c789a8baf00b0
child 296439 e97f355e24c9a98f62ade458ce6a25364088b9a4
push id76329
push usergszorc@mozilla.com
push dateFri, 06 May 2016 18:16:07 +0000
treeherdermozilla-inbound@273d52aff2ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlund
bugs1270317
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1270317 - Use modern exception syntax in purgelong; r=jlund MozReview-Commit-ID: ISd4b14mjkl
testing/mozharness/external_tools/purgelong.py
--- a/testing/mozharness/external_tools/purgelong.py
+++ b/testing/mozharness/external_tools/purgelong.py
@@ -48,17 +48,17 @@ else:
 
 
 def unlink_wrapper(unlink_orig, fn, ui):
     '''Calls the original unlink function, and if that fails, calls
     unlink_long'''
     try:
         ui.debug('calling unlink_orig %s\n' % fn)
         return unlink_orig(fn)
-    except WindowsError, e:
+    except WindowsError as e:
         # windows error 3 corresponds to ERROR_PATH_NOT_FOUND
         # only handle this case; re-raise the exception for other kinds of
         # failures
         if e.winerror != 3:
             raise
         ui.debug('caught WindowsError ERROR_PATH_NOT_FOUND; '
                  'calling unlink_long %s\n' % fn)
         return unlink_long(fn)