From 85cda5069b30fc2de408845fdbff274263d86e19 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 18 Mar 2010 23:56:33 +0000 Subject: [PATCH] Changed variable name to avoid conflict with reload function svn: r14864 --- src/gen/plug/_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gen/plug/_manager.py b/src/gen/plug/_manager.py index 4ef075e96..c693b7ba0 100644 --- a/src/gen/plug/_manager.py +++ b/src/gen/plug/_manager.py @@ -142,11 +142,11 @@ class BasePluginManager(object): """ if pdata.id in self.__loaded_plugins: return self.__loaded_plugins[pdata.id] - reload = False + need_reload = False filename = pdata.fname if filename in self.__attempt_list: #new attempt after a fail, a reload needed - reload = True + need_reload = True dellist = [] for index, data in enumerate(self.__failmsg_list): if data[0] == filename: @@ -160,7 +160,7 @@ class BasePluginManager(object): plugin = pdata.mod_name try: _module = __import__(plugin) - if reload: + if need_reload: # For some strange reason second importing of a failed plugin # results in success. Then reload reveals the actual error. # Looks like a bug in Python.