--- buildtools/wafadmin/Build.py.orig 2014-10-01 18:12:21.000000000 +1000 +++ buildtools/wafadmin/Build.py 2021-12-29 15:40:04.709870000 +1000 @@ -345,7 +345,7 @@ def load_envs(self): try: lst = Utils.listdir(self.cachedir) - except OSError, e: + except OSError as e: if e.errno == errno.ENOENT: raise Utils.WafError('The project was not configured: run "waf configure" first!') else: @@ -801,7 +801,7 @@ try: os.remove(tgt) - except OSError, e: + except OSError as e: if e.errno != errno.ENOENT: if not getattr(self, 'uninstall_error', None): self.uninstall_error = True