diff options
author | Scott Moser <smoser@ubuntu.com> | 2014-01-28 14:04:06 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-01-28 14:04:06 -0500 |
commit | 2083bc757515e92982497ba4ce27b07cea4409ce (patch) | |
tree | d8b2524a34642371f002b187d84fc68ad0d9ada7 | |
parent | c1253945761c33bfa89289a63cdb8799fc18d019 (diff) | |
download | vyos-cloud-init-2083bc757515e92982497ba4ce27b07cea4409ce.tar.gz vyos-cloud-init-2083bc757515e92982497ba4ce27b07cea4409ce.zip |
cloudinit/util.py: fix pylint complaints
-rw-r--r-- | cloudinit/util.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index f36e2733..c0121848 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -369,11 +369,11 @@ def is_ipv4(instr): return False try: - toks = [x for x in toks if (int(x) < 256 and int(x) > 0)] + toks = [x for x in toks if int(x) < 256 and int(x) > 0] except: return False - return (len(toks) == 4) + return len(toks) == 4 def get_cfg_option_bool(yobj, key, default=False): @@ -972,7 +972,7 @@ def gethostbyaddr(ip): def is_resolvable_url(url): """determine if this url is resolvable (existing or ip).""" - return (is_resolvable(urlparse.urlparse(url).hostname)) + return is_resolvable(urlparse.urlparse(url).hostname) def search_for_mirror(candidates): |