From 67edd19eb8a457dbb2c6d154c1b127333b85f451 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Wed, 20 Jun 2018 13:51:12 +0200 Subject: [PATCH] Small formatting fixes --- fbchat/client.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/fbchat/client.py b/fbchat/client.py index 099799f..d09b287 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -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 """