Skip to content

Commit

Permalink
Fix lint warnings from invalid escape sequences (#82)
Browse files Browse the repository at this point in the history
Use raw strings for regex patterns to avoid warnings.
  • Loading branch information
jacobperron authored Oct 25, 2018
1 parent d449c8b commit c2635ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ament_package/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def substitute(match):
if var in environment:
return environment[var]
return ''
return re.sub('\@[a-zA-Z0-9_]+\@', substitute, template)
return re.sub(r'\@[a-zA-Z0-9_]+\@', substitute, template)


def _is_platform_specific_extension(filename):
Expand Down

0 comments on commit c2635ea

Please sign in to comment.