buildtools python: convert 'except X, e' to 'except X as e'
[gd/samba-autobuild/.git] / buildtools / wafsamba / nothreads.py
index d194eb88a21bb79517f8caa8b714195ac88fca54..9bd33e89f8d035c60f6915694565e28660e05951 100644 (file)
@@ -43,7 +43,7 @@ def process(tsk):
         if tsk.__class__.stat: ret = tsk.__class__.stat(tsk)
         # actual call to task's run() function
         else: ret = tsk.call_run()
-    except Exception, e:
+    except Exception as e:
         tsk.err_msg = Utils.ex_stack()
         tsk.hasrun = EXCEPTION
 
@@ -177,7 +177,7 @@ class Parallel(object):
 
             try:
                 st = tsk.runnable_status()
-            except Exception, e:
+            except Exception as e:
                 self.processed += 1
                 if self.stop and not Options.options.keep:
                     tsk.hasrun = SKIPPED