Skip to content

Commit

Permalink
python3
Browse files Browse the repository at this point in the history
  • Loading branch information
sfomel committed Sep 10, 2024
1 parent c805c99 commit 44f8c16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/rsf/scons2jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def ipynb(figs,notebook):

def parse(sconstruct):
'parse SConstruct, extract code for each figure'
result = re.compile('Result\s*\(\s*[\'\"](?P<fig>[^\'\"]+)')
result = re.compile(r'Result\s*\(\s*[\'\"](?P<fig>[^\'\"]+)')
figs = []
block = ''
brackets = 0
Expand All @@ -54,9 +54,9 @@ def parse(sconstruct):
block += line
continue

if re.search('from rsf.proj import \*\s*',line):
if re.search(r'from rsf.proj import \*\s*',line):
continue
if re.search('End()\s*',line):
if re.search(r'End()\s*',line):
continue

res = result.search(line)
Expand Down

0 comments on commit 44f8c16

Please sign in to comment.