From aa6cae97fde2c7d7cb1028887f39ffc61c309f64 Mon Sep 17 00:00:00 2001 From: Jim Shepich III Date: Mon, 2 Feb 2026 13:49:04 -0500 Subject: [PATCH] Fixed for Python 3.9 --- jimsite/articles.py | 2 +- jimsite/blog.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/jimsite/articles.py b/jimsite/articles.py index cd2b9b7..7a449dd 100644 --- a/jimsite/articles.py +++ b/jimsite/articles.py @@ -123,7 +123,7 @@ def build_articles( ) - with open(f'{site.web_root.rstrip('/')}/{article.path}', 'w') as f: + with open(f"{site.web_root.rstrip('/')}/{article.path}", 'w') as f: f.write(page_html) \ No newline at end of file diff --git a/jimsite/blog.py b/jimsite/blog.py index 8a3b4b8..59229a3 100644 --- a/jimsite/blog.py +++ b/jimsite/blog.py @@ -83,14 +83,15 @@ def build_blog_archive( }}}} ''') - + # For Python 3.9-friendliness. + newline = '\n' # Generate the archive article. archive_html_article = format_html_template( template_selections['archive_article'], content = archive_html_list, tag_selector_options = ' '.join(tag_selector_options), - tag_selector_css_rules = f'', + tag_selector_css_rules = f'', site = site, **kwargs )