summaryrefslogtreecommitdiff
path: root/dns/opcode.py
diff options
context:
space:
mode:
authorMartin Basti <martin.basti@gmail.com>2016-06-27 01:15:31 +0200
committerMartin Basti <martin.basti@gmail.com>2016-06-27 01:43:22 +0200
commitd90346c6ce43a48e9540fa16d60377cc852586aa (patch)
tree17ede6fde9d6f5e9b8cc5aa5305c41aa929dd5f1 /dns/opcode.py
parent1e7ba5b5a5f4b43e4306f0e743a7b772c59f2ce6 (diff)
downloaddnspython-d90346c6ce43a48e9540fa16d60377cc852586aa.tar.gz
Pylint: enable superfluous-parens check
Diffstat (limited to 'dns/opcode.py')
-rw-r--r--dns/opcode.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/dns/opcode.py b/dns/opcode.py
index 2b2918e..70d704f 100644
--- a/dns/opcode.py
+++ b/dns/opcode.py
@@ -104,6 +104,4 @@ def is_update(flags):
@rtype: bool
"""
- if (from_flags(flags) == UPDATE):
- return True
- return False
+ return from_flags(flags) == UPDATE