mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #16714 from ClickHouse/backport-python3
Fix "format-changelog.py" for Python3
This commit is contained in:
commit
c53725fb1f
@ -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 = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user