MCPcopy Create free account
hub / github.com/apache/impala / remove_comments

Function remove_comments

tests/util/test_file_parser.py:84–86  ·  view source on GitHub ↗
(section_text)

Source from the content-addressed store, hash-verified

82
83
84def remove_comments(section_text):
85 lines = [line for line in section_text.split('\n') if not line.strip().startswith('#')]
86 return '\n'.join(lines)
87
88
89def parse_query_test_file(file_name, valid_section_names=None, encoding=None):

Callers 7

_run_hbo_explainsMethod · 0.90
__init__Method · 0.90
verify_raw_resultsFunction · 0.90
verify_runtime_profileFunction · 0.90
build_queryMethod · 0.85
load_tpc_queriesFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected