Fix invalid string escape sequences.

This commit is contained in:
Matt Clay
2017-11-21 10:24:37 -08:00
parent 6ac9d05de6
commit 9735a70059
49 changed files with 81 additions and 81 deletions

View File

@@ -137,7 +137,7 @@ from ansible.module_utils.basic import AnsibleModule
def parse_out(string):
return re.sub("\s+", " ", string).strip()
return re.sub(r"\s+", " ", string).strip()
def has_changed(string):

View File

@@ -220,7 +220,7 @@ class Npm(object):
if dep:
# node.js v0.10.22 changed the `npm outdated` module separator
# from "@" to " ". Split on both for backwards compatibility.
pkg, other = re.split('\s|@', dep, 1)
pkg, other = re.split(r'\s|@', dep, 1)
outdated.append(pkg)
return outdated