Set default timeout

This commit is contained in:
Dionysus 2023-05-18 16:41:29 -04:00
parent 6d593523a6
commit e09974fa4b
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -287,7 +287,6 @@ class PasteBin:
def __init__(self, api_dev_key, api_user_key=None):
self.api_dev_key = api_dev_key
self.api_user_key = api_user_key
self.timeout = timeout
def api_call(self, method, params):
response = urllib.request.urlopen('https://pastebin.com/api/' + method, urllib.parse.urlencode(params).encode('utf-8'), timeout=10)