Small formatting fixes
This commit is contained in:
@@ -12,9 +12,9 @@ from .models import *
|
|||||||
from .graphql import *
|
from .graphql import *
|
||||||
import time
|
import time
|
||||||
try:
|
try:
|
||||||
from urllib.parse import urlparse,parse_qs
|
from urllib.parse import urlparse, parse_qs
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from urlparse import urlparse,parse_qs
|
from urlparse import urlparse, parse_qs
|
||||||
|
|
||||||
|
|
||||||
class Client(object):
|
class Client(object):
|
||||||
@@ -1318,8 +1318,8 @@ class Client(object):
|
|||||||
return r.ok
|
return r.ok
|
||||||
|
|
||||||
def removeFriend(self, friend_id=None):
|
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
|
: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.
|
:return: Returns error if the removing was unsuccessful, returns True when successful.
|
||||||
"""
|
"""
|
||||||
@@ -1328,13 +1328,13 @@ class Client(object):
|
|||||||
"unref": "none",
|
"unref": "none",
|
||||||
"confirm": "Confirm",
|
"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)
|
query = parse_qs(urlparse(r.url).query)
|
||||||
if "err" not in query:
|
if "err" not in query:
|
||||||
log.debug ("Remove was successful!")
|
log.debug("Remove was successful!")
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
log.debug ("Error while removing friend")
|
log.warning("Error while removing friend")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user