Slight stylistic update.

This commit is contained in:
Jeremy Fincher 2004-12-10 06:55:01 +00:00
parent 265d620a0e
commit 551ce2919b
1 changed files with 1 additions and 2 deletions

View File

@ -92,8 +92,7 @@ def loadPluginModule(name, ignoreDeprecation=False):
try:
module = imp.load_module(name, *moduleInfo)
except:
if name in sys.modules:
del sys.modules[name]
sys.modules.pop(name, None)
raise
if 'deprecated' in module.__dict__ and module.deprecated:
if ignoreDeprecation: