[Bf-blender-cvs] [783b4cd] master: PyAPI: use set.discard instead of set-subtraction

Campbell Barton noreply at git.blender.org
Fri Jan 23 06:39:12 CET 2015


Commit: 783b4cd1ca22de57c98ebcfaeec7a20936a9a621
Author: Campbell Barton
Date:   Fri Jan 23 16:37:00 2015 +1100
Branches: master
https://developer.blender.org/rB783b4cd1ca22de57c98ebcfaeec7a20936a9a621

PyAPI: use set.discard instead of set-subtraction

===================================================================

M	release/scripts/modules/addon_utils.py

===================================================================

diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py
index 56681e1..d236a59 100644
--- a/release/scripts/modules/addon_utils.py
+++ b/release/scripts/modules/addon_utils.py
@@ -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:




More information about the Bf-blender-cvs mailing list