Update concatenate.py

This commit is contained in:
Ivan Blinkov 2020-03-31 16:04:53 +03:00 committed by GitHub
parent 487c088ab7
commit a2ceb92907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,9 +14,8 @@ def concatenate(lang, docs_path, single_page_file):
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)) +
' files will be concatenated into single md-file.')
files_count = len(files_to_concatenate)
logging.info(f'{files_count} files will be concatenated into single md-file for {lang}.')
logging.debug('Concatenating: ' + ', '.join(files_to_concatenate))
for path in files_to_concatenate: