From 8f993c8e31e3650caa05978669ef70e68a39f393 Mon Sep 17 00:00:00 2001 From: sandersantema Date: Wed, 27 May 2020 12:04:49 +0200 Subject: [PATCH] remove unused variable 'w' from '_onHtmlEdit' --- qt/aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 120a31cf9..618140a42 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -536,7 +536,7 @@ class Editor: if html.find(">") > -1: # filter html through beautifulsoup so we can strip out things like a # leading - with warnings.catch_warnings() as w: + with warnings.catch_warnings(): warnings.simplefilter("ignore", UserWarning) html = str(BeautifulSoup(html, "html.parser")) self.note.fields[field] = html