Skip to content

Commit 9845c0b

Browse files
committed
fix warning about regex from pylance.
1 parent 5c9b920 commit 9845c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jupyter_matlab_kernel/magic_execution_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def get_magics_from_cell(cell_code):
144144
magic_dict = magic_matches.groupdict()
145145
params = magic_dict["params"].strip()
146146
if params:
147-
magic_dict["params"] = re.split("\s+", params)
147+
magic_dict["params"] = re.split(r"\s+", params)
148148
# transform ? parameter into a help magic, such that %%file? becomes %%help file
149149
if params.startswith("?"):
150150
# Ignore additional parameters after the ? parameter

0 commit comments

Comments
 (0)