Remove wildcard imports (#791)

main
Joao A. Candido Ramos 2022-06-24 18:51:15 +02:00 committed by GitHub
parent ddb8931e68
commit d05ec08abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View File

@ -3,11 +3,20 @@ from bs4 import BeautifulSoup
from bs4.element import ResultSet, Tag
from cryptography.fernet import Fernet
from flask import render_template
import urllib.parse as urlparse
from urllib.parse import parse_qs
import re
from app.models.g_classes import GClasses
from app.request import VALID_PARAMS, MAPS_URL
from app.utils.misc import get_abs_url, read_config_bool
from app.utils.results import *
from app.utils.results import (
BLANK_B64, GOOG_IMG, GOOG_STATIC, G_M_LOGO_URL, LOGO_URL, SITE_ALTS,
has_ad_content, filter_link_args, append_anon_view, get_site_alt,
)
from app.models.endpoint import Endpoint
from app.models.config import Config
minimal_mode_sections = ['Top stories', 'Images', 'People also ask']
unsupported_g_pages = [

View File

@ -2,8 +2,9 @@ import os
import re
from typing import Any
from app.filter import Filter, get_first_link
from app.filter import Filter
from app.request import gen_query
from app.utils.results import get_first_link
from bs4 import BeautifulSoup as bsoup
from cryptography.fernet import Fernet, InvalidToken
from flask import g

View File

@ -4,7 +4,7 @@ from app.models.config import Config
from app.models.endpoint import Endpoint
from app.utils.session import generate_user_key
from datetime import datetime
from dateutil.parser import *
from dateutil.parser import ParserError, parse
from urllib.parse import urlparse
from test.conftest import demo_config