def __repmethod(self, name, repmethod):
        if repmethod is None:
            return name
        if repmethod == 'literalRegex':
            return re.escape(name)
        # should not be reached
        raise MacroError, 'unknown representation method %s for %s' %(repmethod, name)
dataset/ETHPy150Open sassoftware/conary/conary/build/macros.py/Macros.__repmethod/original