Update utils/make_changelog.py

Co-authored-by: Azat Khuzhin <a3at.mail@gmail.com>
This commit is contained in:
Ivan 2020-10-30 21:16:50 +03:00 committed by GitHub
parent 5481fcdf42
commit 9828ed9550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,7 @@ def process_unknown_commits(commits, commits_info, users):
# Returns False if the PR should not be mentioned changelog.
def parse_one_pull_request(item):
description = item['description']
lines = [line for line in [x.strip() for x in description.split('\n') if description] if line]
lines = [line for line in [x.strip() for x in description.split('\n')] if line] if description else []
lines = [re.sub(r'\s+', ' ', l) for l in lines]
cat_pos = None