Small formatting fixes

This commit is contained in:
Mads Marquart
2018-06-20 13:51:12 +02:00
parent c7cbbdd1c8
commit 67edd19eb8

View File

@@ -12,9 +12,9 @@ from .models import *
from .graphql import *
import time
try:
from urllib.parse import urlparse,parse_qs
from urllib.parse import urlparse, parse_qs
except ImportError:
from urlparse import urlparse,parse_qs
from urlparse import urlparse, parse_qs
class Client(object):
@@ -470,8 +470,8 @@ class Client(object):
"""
END DEFAULT THREAD METHODS
"""
"""
"""
FETCH METHODS
"""
@@ -1316,10 +1316,10 @@ class Client(object):
r = self._post(self.req_url.CONNECT, data)
return r.ok
def removeFriend(self, friend_id=None):
"""
Removes a specifed friend from your friend list
"""Removes a specifed friend from your friend list
:param friend_id: The id of the friend that you want to remove
:return: Returns error if the removing was unsuccessful, returns True when successful.
"""
@@ -1328,15 +1328,15 @@ class Client(object):
"unref": "none",
"confirm": "Confirm",
}
r = self._post(self.req_url.REMOVE_FRIEND,payload)
r = self._post(self.req_url.REMOVE_FRIEND, payload)
query = parse_qs(urlparse(r.url).query)
if "err" not in query:
log.debug ("Remove was successful!")
log.debug("Remove was successful!")
return True
else:
log.debug ("Error while removing friend")
log.warning("Error while removing friend")
return False
"""
LISTEN METHODS
"""