Skip to content

Commit 44f8c16

Browse files
committed
python3
1 parent c805c99 commit 44f8c16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

framework/rsf/scons2jupyter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def ipynb(figs,notebook):
3535

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

57-
if re.search('from rsf.proj import \*\s*',line):
57+
if re.search(r'from rsf.proj import \*\s*',line):
5858
continue
59-
if re.search('End()\s*',line):
59+
if re.search(r'End()\s*',line):
6060
continue
6161

6262
res = result.search(line)

0 commit comments

Comments
 (0)