##### SUMMARY

There are several options for resolving this:

* Vendoring a second copy of `six` that implements `find_spec` and `exec_module`, and using it for newer Pythons.
* Vendoring the latest version of `six` and updating it as needed to work back through Python 2.6.

See also: https://github.com/ansible/ansible/issues/72952

##### ISSUE TYPE

Feature Idea

##### COMPONENT NAME

lib/ansible/module_utils/six/__init__.py
)
                
                
                warnings.filterwarnings(
                    "ignore",
                    r"_SixMetaPathImporter\.find_spec\(\) not found; falling back to find_module\(\)",
                )
                
                
                warnings.filterwarnings(
                    "ignore",
                    r"_SixMetaPathImporter\.exec_module\(\) not found; falling back to load_module\(\)",
                )
                
                
                
                
                warnings.filterwarnings(
                    "ignore",
                    r"The distutils package is deprecated and slated for removal in Python 3\.12\. .*",
                )
            try:
                yield
            finally:
                sys.stdout = old_stdout
                sys.stderr = old_stderr
    run(import_type == 'module')
if __name__ == '__main__':
    main()