From 57b1baadc10ee79db5ee938003bd497f4a2420a8 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 29 Aug 2025 22:10:59 +0200 Subject: [PATCH 1/2] Remove global statement that became superfluous in 0651a780198a827715078c0dadc6251a9f2a8b57. --- v7/issue_role/issue_role.py | 1 - 1 file changed, 1 deletion(-) diff --git a/v7/issue_role/issue_role.py b/v7/issue_role/issue_role.py index 71e003cc..3225fba7 100644 --- a/v7/issue_role/issue_role.py +++ b/v7/issue_role/issue_role.py @@ -39,7 +39,6 @@ def set_site(self, site): """Set Nikola site.""" self.site = site roles.register_local_role('issue', IssueRole) - global ISSUE_URL IssueRole.site = site return super(Plugin, self).set_site(site) From 77df68deea7f0862c79eeef3dec02ff6c54501e9 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 29 Aug 2025 22:14:39 +0200 Subject: [PATCH 2/2] Fix unnecessary nonlocal. --- v7/latex/latex/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v7/latex/latex/parser.py b/v7/latex/latex/parser.py index a39bab35..9fe327c7 100644 --- a/v7/latex/latex/parser.py +++ b/v7/latex/latex/parser.py @@ -883,7 +883,7 @@ def add_to_current_word(part): current_word.parts.append(part) def add_to_current_block(part): - nonlocal current_words, current_block + nonlocal current_block flush_words() if current_block is None: current_block = tree.Block()