Skip to content
Snippets Groups Projects
Commit 6ec98029 authored by Xavier Robin's avatar Xavier Robin
Browse files

fix DeprecationWarning: invalid escape sequence \d in regex

parent 70b3b05a
Branches
Tags
No related merge requests found
...@@ -20,9 +20,9 @@ def GetHHblitsVersionString(): ...@@ -20,9 +20,9 @@ def GetHHblitsVersionString():
# regular expression in the form # regular expression in the form
# HHblits, whatever except newline, x.y.z # HHblits, whatever except newline, x.y.z
# where x.y.z are the version numerals # where x.y.z are the version numerals
version_line = re.search('HHblits[^\n]+\d+\.\d+\.\d+', proc.stdout.decode()) version_line = re.search(r'HHblits[^\n]+\d+\.\d+\.\d+', proc.stdout.decode())
if version_line is not None: if version_line is not None:
version = re.search('\d+\.\d+\.\d+', version_line.group()) version = re.search(r'\d+\.\d+\.\d+', version_line.group())
if version is not None: if version is not None:
version_string = version.group() version_string = version.group()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment