Skip to content

Commit

Permalink
Fix re.split DeprecationWarning (#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjer committed Jul 9, 2024
1 parent ce74c51 commit cda2cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jupytext/cell_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def parse_rmd_options(line):

def rmd_options_to_metadata(options, use_runtools=False):
"""Parse rmd options and return a metadata dictionary"""
options = re.split(r"\s|,", options, 1)
options = re.split(r"\s|,", options, maxsplit=1)
# Special case Wolfram Language, which sadly has a space in the language
# name.
if options[0:2] == ["wolfram", "language"]:
Expand Down

0 comments on commit cda2cb4

Please sign in to comment.