--- buildtools/wafadmin/Configure.py.orig 2014-10-01 18:12:21.000000000 +1000 +++ buildtools/wafadmin/Configure.py 2021-12-29 15:41:23.563481000 +1000 @@ -176,7 +176,7 @@ module = None try: module = Utils.load_tool(tool, tooldir) - except Exception, e: + except Exception as e: ex = e if Options.options.download: _3rdparty = os.path.normpath(Options.tooldir[0] + os.sep + '..' + os.sep + '3rdparty') @@ -190,7 +190,7 @@ web = urlopen(url) if web.getcode() != 200: continue - except Exception, e: + except Exception as e: # on python3 urlopen throws an exception continue else: @@ -419,7 +419,7 @@ if not f: self.fatal("No such method '%s'." % x) try: f() - except Exception, e: + except Exception as e: ret = self.err_handler(x, e) if ret == BREAK: break