Convert weird Unicode integers to ASCII format

This commit is contained in:
int3l 2019-11-24 01:33:22 +02:00 committed by GitHub
parent 60c0fb4366
commit d4c565fea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -299,7 +299,7 @@ def cmd_uptime(match: Match[str]) -> Response:
def cmd_pep(match: Match[str]) -> Response:
*_, number = match.groups()
return MessageResponse(
match, f'https://www.python.org/dev/peps/pep-{number.zfill(4)}/',
match, f'https://www.python.org/dev/peps/pep-{int(number).zfill(4)}/',
)