Skip to content

Commit e42466f

Browse files
committed
fix Python3.3 syntax error
1 parent 88e057c commit e42466f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
#-------------------------------------------------------------------------------------------------------
33
# Copyright (C) Microsoft. All rights reserved.
4-
# Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved.
4+
# Copyright (c) ChakraCore Project Contributors. All rights reserved.
55
# Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
66
#-------------------------------------------------------------------------------------------------------
77

@@ -316,11 +316,11 @@ def __init__(self, name, compile_flags=[], variant_not_tags=[]):
316316

317317
@staticmethod
318318
def _has_expansion(flags):
319-
return any(re.match('.*\${.*}', f) for f in flags)
319+
return any(re.match(r'.*\${.*}', f) for f in flags)
320320

321321
@staticmethod
322322
def _expand(flag, test):
323-
return re.sub('\${id}', str(test.id), flag)
323+
return re.sub(r'\${id}', str(test.id), flag)
324324

325325
def _expand_compile_flags(self, test):
326326
if self._compile_flags_has_expansion:

0 commit comments

Comments
 (0)