mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
Ignore spurious warning from BeautifulSoup
This commit is contained in:
parent
90a89c47e2
commit
fcdc5afbf4
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,9 @@ import math
|
||||||
from urllib.parse import urlparse, parse_qs, urlencode
|
from urllib.parse import urlparse, parse_qs, urlencode
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
import flask
|
import flask
|
||||||
from bs4 import BeautifulSoup, NavigableString
|
from bs4 import BeautifulSoup, NavigableString, MarkupResemblesLocatorWarning
|
||||||
|
import warnings
|
||||||
|
warnings.filterwarnings("ignore", category=MarkupResemblesLocatorWarning)
|
||||||
import requests
|
import requests
|
||||||
import os
|
import os
|
||||||
from flask import current_app, json, redirect, url_for, request, make_response, Response, g
|
from flask import current_app, json, redirect, url_for, request, make_response, Response, g
|
||||||
|
|
Loading…
Add table
Reference in a new issue