summaryrefslogtreecommitdiff
path: root/cloudinit/netinfo.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2018-05-04 11:18:22 -0600
committerChad Smith <chad.smith@canonical.com>2018-05-04 11:18:22 -0600
commit80dfb3b023a268d6d6204220665c2cf43eac66df (patch)
tree0eeb76fc6db15e3f96a7ceef2261c68a0dfc9909 /cloudinit/netinfo.py
parentaae494c39f4c6f625e7409ca262e657d085dd5d1 (diff)
downloadcloud-init-git-80dfb3b023a268d6d6204220665c2cf43eac66df.tar.gz
pycodestyle: Fix deprecated string literals, move away from flake8.
Fix remaining pycodesytle warnings related to invalid string literals introduced in more recent pycodeflakes versions https://bugs.python.org/issue27364 . Also stop using flake8 in tox as it is incompatible with newer versions of pyflakes. Instead we now add tox environments for pycodestyle and pyflakes individually. Set the versions in both pycodestyle and pyflakes to the currently available versions.
Diffstat (limited to 'cloudinit/netinfo.py')
-rw-r--r--cloudinit/netinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/netinfo.py b/cloudinit/netinfo.py
index 1be76fe7..9ff929c2 100644
--- a/cloudinit/netinfo.py
+++ b/cloudinit/netinfo.py
@@ -138,7 +138,7 @@ def _netdev_info_ifconfig(ifconfig_data):
elif toks[i].startswith("scope:"):
devs[curdev]['ipv6'][-1]['scope6'] = toks[i].lstrip("scope:")
elif toks[i] == "scopeid":
- res = re.match(".*<(\S+)>", toks[i + 1])
+ res = re.match(r'.*<(\S+)>', toks[i + 1])
if res:
devs[curdev]['ipv6'][-1]['scope6'] = res.group(1)
return devs