From 753c1cebb53fd428b1a2c2b994f0bec1e946e410 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 20 Sep 2020 18:30:37 -0700 Subject: [PATCH] Use pathclass.Path.open. --- voussoir.net/writing/generate_site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voussoir.net/writing/generate_site.py b/voussoir.net/writing/generate_site.py index 7ff429e..9616cc6 100644 --- a/voussoir.net/writing/generate_site.py +++ b/voussoir.net/writing/generate_site.py @@ -44,7 +44,7 @@ def write(path, content): if path not in writing_rootdir: raise ValueError(path) print(path.absolute_path) - f = open(path.absolute_path, 'w', encoding='utf-8') + f = path.open('w', encoding='utf-8') f.write(content) f.close()