mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Added comprehension to improve performance
This commit is contained in:
parent
b741b60b4c
commit
2c37e31d2e
@ -11,11 +11,8 @@ def concatenate(lang, docs_path, single_page_file):
|
||||
az_re = re.compile(r'[a-z]')
|
||||
|
||||
with open(proj_config) as cfg_file:
|
||||
files_to_concatenate = []
|
||||
for l in cfg_file:
|
||||
if '.md' in l and 'single_page' not in l:
|
||||
path = (l[l.index(':') + 1:]).strip(" '\n")
|
||||
files_to_concatenate.append(path)
|
||||
files_to_concatenate = [(l[l.index(':') + 1:]).strip(" '\n") for l in cfg_file
|
||||
if '.md' in l and 'single_page' not in l]
|
||||
|
||||
logging.info(
|
||||
str(len(files_to_concatenate)) +
|
||||
|
Loading…
Reference in New Issue
Block a user