def quote_name_unless_alias(self, name):
        if name in self.quote_cache:
            return self.quote_cache[name]
        if ((name in self.query.alias_map and name not in self.query.table_map) or
                name in self.query.extra_select):
            self.quote_cache[name] = name
            return name
        r = self.connection.ops.quote_name(name)
        self.quote_cache[name] = r
        return r
Test parsing comments in a requirements file
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/models/sql/compiler.py/SQLCompiler.quote_name_unless_alias--crossover with--dataset/ETHPy150Open pypa/pip/tests/unit/test_req_file.py/TestParseRequirements.test_req_file_parse_egginfo_end_of_line_with_url