Added missing self

This commit is contained in:
Dionysus 2019-06-28 05:55:43 -04:00
parent f4758c66e9
commit e4a8566077
No known key found for this signature in database
GPG Key ID: 05114B46832BDBDB

View File

@ -294,7 +294,7 @@ class PasteBin:
def create_user_key(self, username, password):
params = {'api_dev_key':self.api_dev_key, 'api_user_name':username, 'api_user_password':password}
return api_call('api_login.php', params)
return self.api_call('api_login.php', params)
def paste(self, data, guest=False, name=None, format=None, private=None, expire=None):
params = {'api_dev_key':self.api_dev_key, 'api_option':'paste', 'api_paste_code':data}