refactor: optimize imports

master
Mufanc 3 years ago
parent a9abca1c04
commit ac3fbe4f01

@ -1,10 +1,9 @@
import asyncio import asyncio
import httpx
import json import json
import re import re
import traceback import traceback
import urllib.parse as parser import urllib.parse as parser
import httpx
import websockets import websockets
from loguru import logger from loguru import logger

@ -1,10 +1,9 @@
import traceback
from os import path
import cv2 import cv2
import numpy as np import numpy as np
import traceback
from loguru import logger from loguru import logger
from numpy import average, dot, linalg from numpy import average, dot, linalg
from os import path
base_path = path.join(path.split(__file__)[0], 'models') base_path = path.join(path.split(__file__)[0], 'models')

@ -1,8 +1,7 @@
import httpx
import json import json
import traceback import traceback
from hashlib import md5 from hashlib import md5
import httpx
from loguru import logger from loguru import logger
from .captcha import recognize from .captcha import recognize

@ -1,8 +1,7 @@
import traceback import traceback
from random import uniform, randint
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
from loguru import logger from loguru import logger
from random import uniform, randint
from configs import configs from configs import configs
from .devtools import Browser from .devtools import Browser

@ -1,8 +1,9 @@
import sys import argparse
import asyncio import asyncio
import sys
from loguru import logger from loguru import logger
from automaton import utils from automaton import utils
import argparse
class Help(object): class Help(object):

Loading…
Cancel
Save