def _setWarningRegistryToNone(modules):
 for v in list(modules.values()):
  if (v is not None):
   try:
    v.__warningregistry__ = None
   except:
    pass

def _setWarningRegistryToNone ( modules ) : for v in list ( modules . values ( ) ) : if ( v is not None ) : try : v . __warningregistry__ = None except : pass
disable the per-module cache for every module found in c{modules} .