Skip to content

Commit

Permalink
raw strings for re in awsem.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Jul 9, 2024
1 parent cf007bb commit 37c56bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tibanna/awsem.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,15 +393,15 @@ 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}


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

0 comments on commit 37c56bc

Please sign in to comment.