--- waflib/Context.py.orig 2023-02-02 05:04:10 +++ waflib/Context.py 2024-06-23 15:42:02 @@ -6,7 +6,7 @@ Classes and functions enabling the command system """ -import os, re, imp, sys +import os, re, sys, types from waflib import Utils, Errors, Logs import waflib.Node @@ -660,7 +660,7 @@ except KeyError: pass - module = imp.new_module(WSCRIPT_FILE) + module = types.ModuleType(WSCRIPT_FILE) try: code = Utils.readf(path, m='r', encoding=encoding) except EnvironmentError: