def getRefs(self, includeNested=1, node=''):
        """
        SYNOPSIS
         Method to get scene references

        INPUTS
         (bool)	includeNested:		also include nested references
         (str)*	node:				Pass a node and only act on the reference, the node belongs to. If the reference passed is nested, includeNested will be forced.

        RETURNS:
         (list) file references in scene or attached to node
        """

        allRefs = []

        #Get all the top level references
        if node:
            node = self.convertToPyNode(node)
            topLevel = self.getTopLevelRef(node)
            if topLevel:
                allRefs.append(topLevel)
            else:
                self.logger.warning(node % 'Node - %s - was passed and no reference found')

            if self.nodeIsNested(node):
                nested = self.getNestedRefs(topLevel)
                if nested:
                    self.logger.info('Node was passed and reference was nested - all subrefs will be included')
                    for n in nested:
                        allRefs.append(n)

        else:
            topRefs = getReferences()
            for rn, ref in topRefs.iteritems():  # @UnusedVariable
                allRefs.append(ref)
                # Look for nested references
                if includeNested:
                    nested = self.getNestedRefs(ref)
                    if nested:
                        for n in nested:
                            allRefs.append(n)
        return allRefs
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/core/mayaCore.py/MayaReferenceCore.getRefs/swapped operands of `%`