Skip to content

Commit

Permalink
None is possibly a better value for 'format'
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Dec 8, 2024
1 parent 40efeb1 commit af4a8eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/jupytext/contentsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit af4a8eb

Please sign in to comment.