Skip to content

Commit 698cad4

Browse files
committed
Fix python 3.14 compatibility of settings helpers
This commit replaces a deprecated method call, which is removed by python 3.14.
1 parent 421c865 commit 698cad4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/settings/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import html.parser
1+
import html
22
import logging
33
import os
44

@@ -221,7 +221,7 @@ def show_popup_for(self, key_region):
221221
def on_navigate(self, href):
222222
"""Popup navigation event handler."""
223223
command, _, argument = href.partition(":")
224-
argument = html.parser.HTMLParser().unescape(argument)
224+
argument = html.unescape(argument)
225225

226226
if command == 'edit':
227227
view_id = self.view.settings().get('edit_settings_other_view_id')

0 commit comments

Comments
 (0)