optimized import maze

This commit is contained in:
UltrafunkAmsterdam 2022-11-28 23:47:38 +01:00
parent 25bca31f35
commit 6adeb2d285
7 changed files with 24 additions and 22 deletions

View File

@ -2,8 +2,6 @@
from __future__ import annotations
import subprocess
from typing import List
from typing import Optional
from selenium.webdriver.common.by import By
@ -25,7 +23,6 @@ by UltrafunkAmsterdam (https://github.com/ultrafunkamsterdam)
__version__ = "3.2.0"
import inspect
import json
import logging
import os

View File

@ -17,6 +17,7 @@ by UltrafunkAmsterdam (https://github.com/ultrafunkamsterdam)
"""
from distutils.version import LooseVersion
import io
import logging
import os
@ -24,11 +25,13 @@ import random
import re
import string
import sys
from urllib.request import urlopen
from urllib.request import urlretrieve
import zipfile
from distutils.version import LooseVersion
from urllib.request import urlopen, urlretrieve
from selenium.webdriver import Chrome as _Chrome, ChromeOptions as _ChromeOptions
from selenium.webdriver import Chrome as _Chrome
from selenium.webdriver import ChromeOptions as _ChromeOptions
TARGET_VERSION = 0
logger = logging.getLogger("uc")

View File

@ -3,11 +3,11 @@
import json
import logging
from collections.abc import Mapping, Sequence
import requests
import websockets
log = logging.getLogger(__name__)

View File

@ -1,17 +1,16 @@
import asyncio
import logging
import time
import traceback
from collections.abc import Mapping
from collections.abc import Sequence
from functools import wraps
import logging
import threading
import time
import traceback
from typing import Any
from typing import Awaitable
from typing import Callable
from typing import List
from typing import Optional
from contextlib import ExitStack
import threading
from functools import wraps, partial
class Structure(dict):

View File

@ -1,13 +1,13 @@
import atexit
import logging
import multiprocessing
import os
import platform
import sys
import signal
from subprocess import PIPE
from subprocess import Popen
import atexit
import traceback
import logging
import signal
import sys
CREATE_NEW_PROCESS_GROUP = 0x00000200
DETACHED_PROCESS = 0x00000008

View File

@ -1,18 +1,19 @@
#!/usr/bin/env python3
# this module is part of undetected_chromedriver
from distutils.version import LooseVersion
import io
import logging
import os
import random
import re
import secrets
import string
import sys
import time
from urllib.request import urlopen
from urllib.request import urlretrieve
import zipfile
from distutils.version import LooseVersion
from urllib.request import urlopen, urlretrieve
import secrets
logger = logging.getLogger(__name__)

View File

@ -1,7 +1,9 @@
import pytest
from _pytest.fixtures import FixtureRequest
import pytest
import undetected_chromedriver as uc
FAILED_SCREENSHOT_NAME = "failed.png"