Skip to content

Commit fda2fb6

Browse files
committed
Silence Python unknown escape sequence warnings by turning some strings into raw strings
1 parent a8ce8f6 commit fda2fb6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

SConstruct

+1-1
Original file line numberDiff line numberDiff line change
@@ -3623,7 +3623,7 @@ windows_coverage_env = windows_debug_env.Clone(
36233623
# needed.
36243624
MANIFEST_FILE = None,
36253625
COVERAGE_ANALYZER_DIR=r'..\third_party\coverage_analyzer\bin',
3626-
COVERAGE_ANALYZER='$COVERAGE_ANALYZER_DIR\coverage_analyzer.exe',
3626+
COVERAGE_ANALYZER=r'$COVERAGE_ANALYZER_DIR\coverage_analyzer.exe',
36273627
)
36283628
# TODO(bradnelson): Switch nacl to common testing process so this won't be
36293629
# needed. Ignoring instrumentation failure as that's easier

site_scons/site_init.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def BuildEnvironmentSConscripts(env):
129129
else:
130130
raise SCons.Errors.UserError(
131131
'Bad location for a SConscript. "%s" is not under '
132-
'\$TARGET_ROOT or \$MAIN_DIR' % c_script)
132+
r'\$TARGET_ROOT or \$MAIN_DIR' % c_script)
133133

134134
def UsingNaclMode():
135135
build_modes = SCons.Script.ARGUMENTS.get('MODE') or SCons.Script.GetOption('build_mode')

src/trusted/service_runtime/build.scons

+1-1
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ if env.Bit('build_x86_64'):
824824

825825
if env.Bit('build_x86') and env.Bit('nacl_static_link'):
826826
RE_HELLO = '^(Hello, World!)$'
827-
RE_IDENT = '^\[[0-9,:.]*\] (e_ident\+1 = ELF)$'
827+
RE_IDENT = r'^\[[0-9,:.]*\] (e_ident\+1 = ELF)$'
828828

829829
node = env.CommandSelLdrTestNacl(
830830
'nacl_log.out',

tools/command_tester.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def GetNaClSignalInfoFromStderr(stderr):
356356

357357
# Scan for signal msg in reverse order
358358
for curline in reversed(lines):
359-
match = re.match('\*\* (Signal|Mach exception) (\d+) from '
359+
match = re.match(r'\*\* (Signal|Mach exception) (\d+) from '
360360
'(trusted|untrusted) code', str(curline))
361361
if match is not None:
362362
return match.group(0)

0 commit comments

Comments
 (0)