From 785df88fa42693ea5aaf910f45e822b2aa395534 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 7 Jun 2018 17:42:40 +0100 Subject: [PATCH] issue #186: core: remove long-forgotten hack. This is likely to break something, it was definitely needed at some point, but I never put much effort into figuring out why. Meanwhile, Python appears to make find_module('ansible.module_utils.facts.') requests in some circumstances, which causes us to indicate the module exists while this hack exists. So remove it, and let's see what breaks. --- mitogen/core.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index 58e004ae..9c37f16d 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -623,7 +623,6 @@ class Importer(object): return None _tls.running = True - fullname = fullname.rstrip('.') try: pkgname, dot, _ = fullname.rpartition('.') _v and LOG.debug('%r.find_module(%r)', self, fullname)