summaryrefslogtreecommitdiffstats
path: root/deluge/ui/client.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2015-11-04 11:12:21 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2015-11-04 11:54:15 +0000
commitcde17925fc2323fcddcf4e608ab7e51d948b1ba5 (patch)
treec255615339f1127fd5111d1eb679bebaafd5b897 /deluge/ui/client.py
parent05ab06e3a51f526893e736544ba3b3e524a8e271 (diff)
downloaddeluge-cde17925fc2323fcddcf4e608ab7e51d948b1ba5.tar.gz
deluge-cde17925fc2323fcddcf4e608ab7e51d948b1ba5.tar.bz2
deluge-cde17925fc2323fcddcf4e608ab7e51d948b1ba5.zip
[Lint] Autopep8 aggressive run
* Uses isinstance() instead of type() * Uses sorted() where possible
Diffstat (limited to 'deluge/ui/client.py')
-rw-r--r--deluge/ui/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index 5dd36b975..762827272 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -92,7 +92,7 @@ class DelugeRPCProtocol(DelugeTransferProtocol):
:param request: a tuple that should be either a RPCResponse, RCPError or RPCSignal
"""
- if type(request) is not tuple:
+ if not isinstance(request, tuple):
log.debug("Received invalid message: type is not tuple")
return
if len(request) < 3: