Update pastebin URL from bpaste to bpa.st (#9131)

This commit is contained in:
Jeff Rasley
2021-10-06 04:12:48 -07:00
committed by GitHub
parent e077f1cbd5
commit e84ba80301
3 changed files with 4 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ def create_new_paste(contents: Union[str, bytes]) -> str:
from urllib.parse import urlencode
params = {"code": contents, "lexer": "text", "expiry": "1week"}
url = "https://bpaste.net"
url = "https://bpa.st"
try:
response: str = (
urlopen(url, data=urlencode(params).encode("ascii")).read().decode("utf-8")