launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #25406
[Merge] ~cjwatson/launchpad:py3-importpedant-importlib-resources into launchpad:master
Colin Watson has proposed merging ~cjwatson/launchpad:py3-importpedant-importlib-resources into launchpad:master.
Commit message:
Allow importing importlib.resources despite __all__
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/391482
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:py3-importpedant-importlib-resources into launchpad:master.
diff --git a/lib/lp/scripts/utilities/importpedant.py b/lib/lp/scripts/utilities/importpedant.py
index e332df7..5176e43 100644
--- a/lib/lp/scripts/utilities/importpedant.py
+++ b/lib/lp/scripts/utilities/importpedant.py
@@ -31,6 +31,7 @@ def text_lines_to_set(text):
valid_imports_not_in_all = {
# Exported in Python 3, but missing and so not exported in Python 2.
'contextlib': set(['ExitStack']),
+ 'importlib': set(['resources']),
# Exported in Python 3, but missing and so not exported in Python 2.
'json.decoder': set(['JSONDecodeError']),
'openid.fetchers': set(['Urllib2Fetcher']),