Skip to content

Commit

Permalink
Fix escaping for base regex
Browse files Browse the repository at this point in the history
Newer versions of flake8 are more restrictive on that topic.
  • Loading branch information
rbarrois committed Apr 29, 2021
1 parent 0953500 commit f0131f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xworkflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class State(object):
name (str): the name of the state
title (str): the human-readable title for the state
"""
STATE_NAME_RE = re.compile('\w+$')
STATE_NAME_RE = re.compile(r'\w+$')

def __init__(self, name, title):
if not self.STATE_NAME_RE.match(name):
Expand Down

0 comments on commit f0131f6

Please sign in to comment.