def escape_name(self, name):
        if name and ((not self.name_pattern.match(name))
                or (name.upper() in self.reserved_words)
                or (name.upper() in self.functions)):
            name = '"%s"' % name

        return name
dataset/ETHPy150Open dbcli/pgcli/pgcli/pgcompleter.py/PGCompleter.escape_name/original