Skip to content

Commit

Permalink
one more pass trough ruff (ruff --select W605 --fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviermattelaer committed Jul 17, 2024
1 parent 947ddb1 commit 2acd31b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion madgraph/various/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def parse_info_str(fsock):
def glob(name, path=''):
"""call to glob.glob with automatic security on path"""
import glob as glob_module
path = re.sub('(?P<name>\?|\*|\[|\])', '[\g<name>]', path)
path = re.sub(r'(?P<name>\?|\*|\[|\])', r'[\g<name>]', path)
return glob_module.glob(pjoin(path, name))

#===============================================================================
Expand Down

0 comments on commit 2acd31b

Please sign in to comment.