Merge pull request #16714 from ClickHouse/backport-python3

Fix "format-changelog.py" for Python3
This commit is contained in:
alexey-milovidov 2020-11-05 19:14:55 +03:00 committed by GitHub
commit c53725fb1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ args = parser.parse_args()
def parse_one_pull_request(item): def parse_one_pull_request(item):
description = item['body'] description = item['body']
# Don't skip empty lines because they delimit parts of description # Don't skip empty lines because they delimit parts of description
lines = [line for line in [x.strip() for x in description.split('\n') if description else []]] lines = [line for line in [x.strip() for x in (description.split('\n') if description else [])]]
lines = [re.sub(r'\s+', ' ', l) for l in lines] lines = [re.sub(r'\s+', ' ', l) for l in lines]
category = '' category = ''