mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
remove unused variable 'w' from '_onHtmlEdit'
This commit is contained in:
parent
3407fb7b2b
commit
8f993c8e31
1 changed files with 1 additions and 1 deletions
|
@ -536,7 +536,7 @@ class Editor:
|
||||||
if html.find(">") > -1:
|
if html.find(">") > -1:
|
||||||
# filter html through beautifulsoup so we can strip out things like a
|
# filter html through beautifulsoup so we can strip out things like a
|
||||||
# leading </div>
|
# leading </div>
|
||||||
with warnings.catch_warnings() as w:
|
with warnings.catch_warnings():
|
||||||
warnings.simplefilter("ignore", UserWarning)
|
warnings.simplefilter("ignore", UserWarning)
|
||||||
html = str(BeautifulSoup(html, "html.parser"))
|
html = str(BeautifulSoup(html, "html.parser"))
|
||||||
self.note.fields[field] = html
|
self.note.fields[field] = html
|
||||||
|
|
Loading…
Reference in a new issue