Skip to content

Commit

Permalink
Fix lint warning from invalid escape sequences (#280)
Browse files Browse the repository at this point in the history
Use raw string for regex pattern to avoid warning.
  • Loading branch information
jacobperron committed Oct 25, 2018
1 parent bc1fbed commit 79b0aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion topic_monitor/topic_monitor/scripts/topic_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class TopicMonitor:
"""Monitor of a set of topics that match a specified topic name pattern."""

def __init__(self, window_size):
self.data_topic_pattern = re.compile('(/(?P<data_name>\w*)_data_?(?P<reliability>\w*))')
self.data_topic_pattern = re.compile(r'(/(?P<data_name>\w*)_data_?(?P<reliability>\w*))')
self.monitored_topics = {}
self.monitored_topics_lock = Lock()
self.publishers = {}
Expand Down

0 comments on commit 79b0aa0

Please sign in to comment.