Convert weird Unicode integers to ASCII format
This commit is contained in:
parent
60c0fb4366
commit
d4c565fea9
2
bot.py
2
bot.py
|
|
@ -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)}/',
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue