diff options
Diffstat (limited to 'js/src/gdb')
-rw-r--r-- | js/src/gdb/mozilla/prettyprinters.py | 2 | ||||
-rw-r--r-- | js/src/gdb/run-tests.py | 4 | ||||
-rw-r--r-- | js/src/gdb/tests/test-ExecutableAllocator.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/js/src/gdb/mozilla/prettyprinters.py b/js/src/gdb/mozilla/prettyprinters.py index b533d1f1f5..12847cae7c 100644 --- a/js/src/gdb/mozilla/prettyprinters.py +++ b/js/src/gdb/mozilla/prettyprinters.py @@ -271,7 +271,7 @@ def implemented_types(t): yield t2 -template_regexp = re.compile("([\w_:]+)<") +template_regexp = re.compile(r"([\w_:]+)<") def is_struct_or_union(t): diff --git a/js/src/gdb/run-tests.py b/js/src/gdb/run-tests.py index cb9501e904..063a550b17 100644 --- a/js/src/gdb/run-tests.py +++ b/js/src/gdb/run-tests.py @@ -40,9 +40,9 @@ def _relpath(path, start=None): os.path.relpath = _relpath # Characters that need to be escaped when used in shell words. -shell_need_escapes = re.compile("[^\w\d%+,-./:=@'\"]", re.DOTALL) +shell_need_escapes = re.compile("[^\\w\\d%+,-./:=@'\"]", re.DOTALL) # Characters that need to be escaped within double-quoted strings. -shell_dquote_escapes = re.compile('[^\w\d%+,-./:=@"]', re.DOTALL) +shell_dquote_escapes = re.compile('[^\\w\\d%+,-./:=@"]', re.DOTALL) def make_shell_cmd(l): diff --git a/js/src/gdb/tests/test-ExecutableAllocator.py b/js/src/gdb/tests/test-ExecutableAllocator.py index bec2dda623..6a3ae4aae1 100644 --- a/js/src/gdb/tests/test-ExecutableAllocator.py +++ b/js/src/gdb/tests/test-ExecutableAllocator.py @@ -13,10 +13,10 @@ run_fragment("ExecutableAllocator.onepool") reExecPool = "ExecutablePool [a-f0-9]{8,}-[a-f0-9]{8,}" assert_regexp_pretty("pool", reExecPool) -assert_regexp_pretty("execAlloc", "ExecutableAllocator\(\[" + reExecPool + "\]\)") +assert_regexp_pretty("execAlloc", r"ExecutableAllocator\(\[" + reExecPool + r"\]\)") run_fragment("ExecutableAllocator.twopools") assert_regexp_pretty( - "execAlloc", "ExecutableAllocator\(\[" + reExecPool + ", " + reExecPool + "\]\)" + "execAlloc", r"ExecutableAllocator\(\[" + reExecPool + ", " + reExecPool + r"\]\)" ) |