Skip to content

Commit 7ab2306

Browse files
committed
refactor: Use raw string for regex pattern
1 parent 35afb53 commit 7ab2306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browserstack/local_binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def read_chunk(chunk_size):
156156
def __verify_binary(self,path):
157157
try:
158158
binary_response = subprocess.check_output([path,"--version"]).decode("utf-8")
159-
pattern = re.compile("BrowserStack Local version \d+\.\d+")
159+
pattern = re.compile(r"BrowserStack Local version \d+\.\d+")
160160
return bool(pattern.match(binary_response))
161161
except:
162162
return False

0 commit comments

Comments
 (0)