Small formatting fixes
This commit is contained in:
@@ -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):
|
||||
@@ -1318,8 +1318,8 @@ class Client(object):
|
||||
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,13 +1328,13 @@ 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
|
||||
|
||||
"""
|
||||
|
Reference in New Issue
Block a user