From a7641e4f802322df910023d1723f9d2e32ed77f8 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Tue, 18 Jun 2024 08:46:07 -0600 Subject: [PATCH] Fix re.split DeprecationWarning --- src/jupytext/cell_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jupytext/cell_metadata.py b/src/jupytext/cell_metadata.py index d49aa0c03..a9c49a317 100644 --- a/src/jupytext/cell_metadata.py +++ b/src/jupytext/cell_metadata.py @@ -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"]: