def _cache_lockfuncs():
 global _LOCKFUNCS
 _LOCKFUNCS = {}
 for modulepath in settings.LOCK_FUNC_MODULES:
  _LOCKFUNCS.update(utils.callables_from_module(modulepath))

def _cache_lockfuncs ( ) : global _LOCKFUNCS _LOCKFUNCS = { } for modulepath in settings . LOCK_FUNC_MODULES : _LOCKFUNCS . update ( utils . callables_from_module ( modulepath ) )
updates the cache .