From 37c56bc6a87d61f5713fc95f360b46ce49ed4037 Mon Sep 17 00:00:00 2001 From: David Michaels Date: Tue, 9 Jul 2024 16:29:20 -0400 Subject: [PATCH] raw strings for re in awsem.py --- tibanna/awsem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tibanna/awsem.py b/tibanna/awsem.py index b8f2f83e..888c7a31 100755 --- a/tibanna/awsem.py +++ b/tibanna/awsem.py @@ -393,7 +393,7 @@ def as_dict(self): def file2cwlfile(filename, dirname, unzip): if unzip: - filename = re.match('(.+)\.{0}$'.format(unzip), filename).group(1) + filename = re.match(r'(.+)\.{0}$'.format(unzip), filename).group(1) if dirname.endswith('/'): dirname = dirname.rstrip('/') return {"class": 'File', "path": dirname + '/' + filename} @@ -401,7 +401,7 @@ def file2cwlfile(filename, dirname, unzip): def file2wdlfile(filename, dirname, unzip): if unzip: - filename = re.match('(.+)\.{0}$'.format(unzip), filename).group(1) + filename = re.match(r'(.+)\.{0}$'.format(unzip), filename).group(1) if dirname.endswith('/'): dirname = dirname.rstrip('/') return dirname + '/' + filename