def _CheckForDependency(parent, name):
 if _allowCapitalizedNames:
  dependents = _dependencyMap.get(parent)
  if (not dependents):
   uncapitalizedParent = UncapitalizeVmodlName(parent)
   dependents = _dependencyMap.get(uncapitalizedParent)
  if dependents:
   if ((name in dependents) or (Uncapitalize(name) in dependents)):
    return True
 else:
  dependents = _dependencyMap.get(parent)
  if dependents:
   if (name in dependents):
    return True
 return False

def _CheckForDependency ( parent , name ) : if _allowCapitalizedNames : dependents = _dependencyMap . get ( parent ) if ( not dependents ) : uncapitalizedParent = UncapitalizeVmodlName ( parent ) dependents = _dependencyMap . get ( uncapitalizedParent ) if dependents : if ( ( name in dependents ) or ( Uncapitalize ( name ) in dependents ) ) : return True else : dependents = _dependencyMap . get ( parent ) if dependents : if ( name in dependents ) : return True return False
note: must be holding the _lazylock .