Skip to content

Commit

Permalink
Fix lint warning from invalid escape sequences (ros2#305)
Browse files Browse the repository at this point in the history
Use raw string for regex pattern to avoid warning.

Signed-off-by: Devin Bonnie <[email protected]>
  • Loading branch information
jacobperron authored and dabonnie committed Apr 3, 2019
1 parent 64a37ea commit 9d38e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_connext_cpp/bin/apply-patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import re

# regular expression / pattern for patch header
_hdr_pat = re.compile('^@@ -(\d+),?(\d+)? \+(\d+),?(\d+)? @@.*$')
_hdr_pat = re.compile(r'^@@ -(\d+),?(\d+)? \+(\d+),?(\d+)? @@.*$')


def apply_patch(s, patch):
Expand Down

0 comments on commit 9d38e76

Please sign in to comment.