

def _sub(self, match):
    (before, prefix, name, postfix) = match.groups()
    self.names.append(name)
    if (name in self.builtins):
        return (before + self.builtins[name])
    elif ((prefix == '>') or (postfix == '<')):
        return (before + self._textarea(name))
    elif ('"' in (prefix, postfix)):
        self.attrs.append(name)
        return (before + (self.require(name) or (('{{' + name) + '}}')))
    else:
        return (before + self._textarea(name))

dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/gui/gui.py InlineFormReplacer._sub/original