From af4a8eb2d2d5f0fda255f30b6e546776b74e6436 Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Sun, 8 Dec 2024 22:42:26 +0000 Subject: [PATCH] None is possibly a better value for 'format' --- src/jupytext/contentsmanager.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jupytext/contentsmanager.py b/src/jupytext/contentsmanager.py index 812e7dac..dd6a9564 100644 --- a/src/jupytext/contentsmanager.py +++ b/src/jupytext/contentsmanager.py @@ -299,7 +299,11 @@ def read_one_file(alt_path, alt_fmt): self.log.info(f"Reading SOURCE from {alt_path}") text = self.super.get( - alt_path, content=True, type="file", format="text" + alt_path, + content=True, + type="file", + # Don't use the parent format, see https://github.com/mwouts/jupytext/issues/1124 + format=None, )["content"] return reads(text, fmt=alt_fmt, config=config)