Skip to content

Commit

Permalink
pylint fix: mark regexes as raw strings (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamheins committed Feb 24, 2024
1 parent c16d1e3 commit edfe7d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xacro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ def is_valid_name(name):
return False


default_value = '''\$\{.*?\}|\$\(.*?\)|(?:'.*?'|\".*?\"|[^\s'\"]+)+|'''
re_macro_arg = re.compile(r'^\s*([^\s:=]+?)\s*:?=\s*(\^\|?)?(' + default_value + ')(?:\s+|$)(.*)')
default_value = r'''\$\{.*?\}|\$\(.*?\)|(?:'.*?'|\".*?\"|[^\s'\"]+)+|'''
re_macro_arg = re.compile(r'^\s*([^\s:=]+?)\s*:?=\s*(\^\|?)?(' + default_value + r')(?:\s+|$)(.*)')
# space( param )( := )( ^| )( default )( space )(rest)


Expand Down

0 comments on commit edfe7d8

Please sign in to comment.