Skip to content

Commit 076787e

Browse files
committed
Fix warnings about invalid escape sequences
1 parent d30a53e commit 076787e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

MC/bin/o2_dpg_workflow_runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,12 +1601,13 @@ def speedup_ROOT_Init():
16011601
os.environ['ROOT_LDSYSPATH'] = libpath.decode()
16021602

16031603
# b) the PATH for compiler includes needed by Cling
1604-
cmd='LC_ALL=C c++ -xc++ -E -v /dev/null 2>&1 | sed -n \'/^.include/,${/^ \/.*++/{p}}\'' # | sed \'s/ //\''
1604+
cmd = "LC_ALL=C c++ -xc++ -E -v /dev/null 2>&1 | sed -n '/^#include/,${/^ \\/.*++/{p}}'"
16051605
proc = subprocess.Popen([cmd], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
16061606
incpath, err = proc.communicate()
16071607
incpaths = [ line.lstrip() for line in incpath.decode().splitlines() ]
16081608
joined = ':'.join(incpaths)
16091609
if not (args.no_rootinit_speedup == True):
1610+
actionlogger.info("Determined ROOT_CPPSYSINCL=" + joined)
16101611
os.environ['ROOT_CPPSYSINCL'] = joined
16111612

16121613
speedup_ROOT_Init()

MC/bin/o2dpg_sim_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def retrieve_sor(run_number):
249249
SOR=0
250250
# extract SOR by pattern matching
251251
for t in tokens:
252-
match_object=re.match("\s*(SOR\s*=\s*)([0-9]*)\s*", t)
252+
match_object=re.match(r"\s*(SOR\s*=\s*)([0-9]*)\s*", t)
253253
if match_object != None:
254254
SOR=match_object[2]
255255
break

0 commit comments

Comments
 (0)