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

View File

@ -17,6 +17,7 @@ by UltrafunkAmsterdam (https://github.com/ultrafunkamsterdam)
""" """
from distutils.version import LooseVersion
import io import io
import logging import logging
import os import os
@ -24,11 +25,13 @@ import random
import re import re
import string import string
import sys import sys
from urllib.request import urlopen
from urllib.request import urlretrieve
import zipfile 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 TARGET_VERSION = 0
logger = logging.getLogger("uc") logger = logging.getLogger("uc")

View File

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

View File

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

View File

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

View File

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

View File

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