mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-21 19:20:07 +00:00
Use raw string to avoid unintended escapes in regex (#5676)
This commit is contained in:
parent
14fe558c07
commit
e4b1a48aab
@ -78,7 +78,7 @@ def git_executable():
|
||||
minor=None
|
||||
try:
|
||||
version_info = subprocess.check_output([git, '--version']).decode('utf-8')
|
||||
match = re.search("^git version (\d+)\.(\d+)",version_info)
|
||||
match = re.search(r"^git version (\d+)\.(\d+)",version_info)
|
||||
print("Using {}".format(version_info))
|
||||
if match:
|
||||
major = int(match.group(1))
|
||||
|
Loading…
Reference in New Issue
Block a user