pastebin

- python wrapper for the pastebin api
git clone git://git.acid.vegas/pastebin.git
Log | Files | Refs | Archive | README | LICENSE

commit e09974fa4b9172b18b36a8e19c7cd949be24321b
parent 6d593523a6669626473abd0755ccdf8643ad98a7
Author: acidvegas <acid.vegas@acid.vegas>
Date: Thu, 18 May 2023 16:41:29 -0400

Set default timeout

Diffstat:
Mpastebin.py | 1-

1 file changed, 0 insertions(+), 1 deletion(-)

diff --git 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)