summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorChris Dent <cdent@anticdent.org>2023-04-30 12:30:30 +0100
committerGitHub <noreply@github.com>2023-04-30 12:30:30 +0100
commit0af287feae82035db71fccd0f65d282eba41a7a4 (patch)
tree7d1f666967471fb2e040a4a3b95ca83243c199b2 /setup.py
parent36fd9632d6ad880b24177a08435eb8e1f9b01714 (diff)
downloadpaste-git-0af287feae82035db71fccd0f65d282eba41a7a4.tar.gz
Augment use of imp with importlib.util (#76)
imp is deprecated and will go away in Python 3.12 (which is very soon). The preferred replacement is importlib. However, importlib is not available in Python 2.7, so we want to keep both in order to maintain 2.7 some semblance of 2.7 support. This implementation is based on the importlib docs [1] and passes the quite robust tests that are already present for the urlparser module. Unfortunately there's no good way to be 100% certain that this works for all the many ways that Paste can do an import. So this patch is mostly hoping that test coverage is sufficient. [1] https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly Fixes #75
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions