summaryrefslogtreecommitdiff
path: root/regen-docs
diff options
context:
space:
mode:
authorChris Dent <cdent@anticdent.org>2023-04-30 10:50:23 +0100
committerChris Dent <chris.dent@gmail.com>2023-04-30 12:27:06 +0100
commit7f60a6dfb501782d219bc0bb028728a5b4ef438a (patch)
tree7d1f666967471fb2e040a4a3b95ca83243c199b2 /regen-docs
parent36fd9632d6ad880b24177a08435eb8e1f9b01714 (diff)
downloadpaste-git-cdent/use-importlib.tar.gz
Augment use of imp with importlib.utilcdent/use-importlib
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 'regen-docs')
0 files changed, 0 insertions, 0 deletions