Skip to content

Commit 02cc426

Browse files
committed
fixup! fix(config[symlink-format]) prefer target suffix for symlinked configs
1 parent 3873d72 commit 02cc426

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vcspull/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,14 +862,14 @@ def save_config(config_file_path: pathlib.Path, data: dict[t.Any, t.Any]) -> Non
862862
>>> with tempfile.TemporaryDirectory() as tmp:
863863
... p = pathlib.Path(tmp) / "test.json"
864864
... save_config(p, {"~/code/": {"repo": {"repo": "git+https://x"}}})
865-
... loaded = json.loads(p.read_text())
865+
... loaded = json.loads(p.read_text(encoding="utf-8"))
866866
... loaded["~/code/"]["repo"]["repo"]
867867
'git+https://x'
868868
869869
>>> with tempfile.TemporaryDirectory() as tmp:
870870
... p = pathlib.Path(tmp) / "test.yaml"
871871
... save_config(p, {"~/code/": {"repo": {"repo": "git+https://x"}}})
872-
... "repo" in p.read_text()
872+
... "repo" in p.read_text(encoding="utf-8")
873873
True
874874
"""
875875
if config_format_from_path(config_file_path) == "json":

0 commit comments

Comments
 (0)