diff options
| author | Martin Basti <martin.basti@gmail.com> | 2016-06-27 01:15:31 +0200 |
|---|---|---|
| committer | Martin Basti <martin.basti@gmail.com> | 2016-06-27 01:43:22 +0200 |
| commit | d90346c6ce43a48e9540fa16d60377cc852586aa (patch) | |
| tree | 17ede6fde9d6f5e9b8cc5aa5305c41aa929dd5f1 /dns/inet.py | |
| parent | 1e7ba5b5a5f4b43e4306f0e743a7b772c59f2ce6 (diff) | |
| download | dnspython-d90346c6ce43a48e9540fa16d60377cc852586aa.tar.gz | |
Pylint: enable superfluous-parens check
Diffstat (limited to 'dns/inet.py')
| -rw-r--r-- | dns/inet.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/inet.py b/dns/inet.py index 966285e..cc22e64 100644 --- a/dns/inet.py +++ b/dns/inet.py @@ -102,10 +102,10 @@ def is_multicast(text): """ try: first = ord(dns.ipv4.inet_aton(text)[0]) - return (first >= 224 and first <= 239) + return first >= 224 and first <= 239 except: try: first = ord(dns.ipv6.inet_aton(text)[0]) - return (first == 255) + return first == 255 except: raise ValueError |
