Skip to content

Commit

Permalink
Fix regular expression not written with raw string
Browse files Browse the repository at this point in the history
  • Loading branch information
bmerry committed Dec 7, 2017
1 parent 5ebc782 commit bede780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiokatcp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _close_connection(self):

def inform_version_connect(self, api: str, version: str, build_state: str = None) -> None:
if api == 'katcp-protocol':
match = re.match('^(\d+)\.(\d+)(?:-(.+))?$', version)
match = re.match(r'^(\d+)\.(\d+)(?:-(.+))?$', version)
error = None
if not match:
error = 'Unparsable katcp-protocol {!r}'.format(version)
Expand Down

0 comments on commit bede780

Please sign in to comment.