mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
Fix invalid string escape sequences.
This commit is contained in:
parent
f9cd50411f
commit
e45c763b64
48 changed files with 77 additions and 77 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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 = []
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue