PyAPI: use set.discard instead of set-subtraction

This commit is contained in:
2015-01-23 16:37:00 +11:00
parent 2242022653
commit 783b4cd1ca

View File

@@ -150,7 +150,7 @@ def modules_refresh(module_cache=addons_fake_modules):
force_support = None
for mod_name, mod_path in _bpy.path.module_names(path):
modules_stale -= {mod_name}
modules_stale.discard(mod_name)
mod = module_cache.get(mod_name)
if mod:
if mod.__file__ != mod_path: