Fix invalid string escape sequences.

This commit is contained in:
Matt Clay 2017-11-20 19:08:30 -08:00
commit e45c763b64
48 changed files with 77 additions and 77 deletions

View file

@ -171,7 +171,7 @@ class CallbackModule(CallbackBase):
duration = host_data.finish - task_data.start
if self._task_class == 'true':
junit_classname = re.sub('\.yml:[0-9]+$', '', task_data.path)
junit_classname = re.sub(r'\.yml:[0-9]+$', '', task_data.path)
else:
junit_classname = task_data.path

View file

@ -115,7 +115,7 @@ class Connection(ConnectionBase):
@staticmethod
def _sanitize_version(version):
return re.sub(u'[^0-9a-zA-Z\.]', u'', version)
return re.sub(u'[^0-9a-zA-Z.]', u'', version)
def _old_docker_version(self):
cmd_args = []

View file

@ -39,7 +39,7 @@ except ImportError:
from ansible.utils.display import Display
display = Display()
_SAFE_GROUP = re.compile("[^A-Za-z0-9\_]")
_SAFE_GROUP = re.compile("[^A-Za-z0-9_]")
# Helper methods