commit | be7e49fd820318509cd8b4dbde479c552f74ef62 | [log] [tgz] |
---|---|---|
author | Nick Coghlan <ncoghlan@gmail.com> | Fri Jul 20 23:40:09 2012 +1000 |
committer | Nick Coghlan <ncoghlan@gmail.com> | Fri Jul 20 23:40:09 2012 +1000 |
tree | 856c3693092233495f1ecadbd90c0b7e085cc70d | |
parent | 818b1186f9459646a4ad7015ed45ce9dfea0fa55 [diff] [blame] |
Close #15386: There was a loophole that meant importlib.machinery and imp would sometimes reference an uninitialised copy of importlib._bootstrap
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 8407b6d..8bdeb32 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py
@@ -2,8 +2,8 @@ import os import sys -import imp import importlib +import imp import os.path from warnings import warn from types import ModuleType