From a293b99b219c13ea94b33a2470a545e07c73b804 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Fri, 11 Apr 2014 13:31:57 +0200 Subject: [PATCH] Fixed the last changeset. --- flask/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask/helpers.py b/flask/helpers.py index 4e80bcd6..cd321e57 100644 --- a/flask/helpers.py +++ b/flask/helpers.py @@ -667,8 +667,8 @@ def _matching_loader_thinks_module_is_package(loader, mod_name): # importlib's namespace loaders do not have this functionality but # all the modules it loads are packages, so we can take advantage of # this information. - elif (loader.__module__ == '_frozen_importlib' and - loader.__name__ == 'NamespaceLoader'): + elif (loader.__class__.__module__ == '_frozen_importlib' and + loader.__class__.__name__ == 'NamespaceLoader'): return True # Otherwise we need to fail with an error that explains what went # wrong.