From e09974fa4b9172b18b36a8e19c7cd949be24321b Mon Sep 17 00:00:00 2001 From: acidvegas Date: Thu, 18 May 2023 16:41:29 -0400 Subject: [PATCH] Set default timeout --- pastebin.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pastebin.py b/pastebin.py index 7d104bb..afd824c 100644 --- a/pastebin.py +++ b/pastebin.py @@ -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)