core: check in the hacks that let Ansible work just now.

pull/262/head
David Wilson 7 years ago
parent f6d9b074ff
commit 92ecf29559

@ -623,6 +623,8 @@ class Importer(object):
return None
_tls.running = True
# TODO: hack: this is papering over a bug elsewhere.
fullname = fullname.rstrip('.')
try:
pkgname, dot, _ = fullname.rpartition('.')
_v and LOG.debug('%r.find_module(%r)', self, fullname)
@ -715,6 +717,8 @@ class Importer(object):
def load_module(self, fullname):
_v and LOG.debug('Importer.load_module(%r)', fullname)
# TODO: hack: this is papering over a bug elsewhere.
fullname = fullname.rstrip('.')
self._refuse_imports(fullname)
event = threading.Event()

Loading…
Cancel
Save