Skip to content

Commit

Permalink
Refactor: Redundant module import
Browse files Browse the repository at this point in the history
  • Loading branch information
PROxZIMA committed Sep 21, 2022
1 parent c3fcc25 commit 5c6bfea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions modules/checker.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import os
import sys
from logging import Logger
from typing import Optional
from urllib.parse import urlparse

import psutil
import requests

from modules.helper import TorProxyException, get_requests_header
from modules.helper.helper import TorServiceException
from modules.helper import TorProxyException, TorServiceException, get_requests_header


def url_canon(website: str, www: bool = False) -> tuple[bool, str]:
Expand Down
3 changes: 1 addition & 2 deletions modules/tests/test_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from unittest import mock

from modules.checker import check_ip, check_tor, extract_domain, folder, url_canon
from modules.helper import TorProxyException, get_tor_proxies, setup_custom_logger
from modules.helper.helper import TorServiceException
from modules.helper import TorProxyException, TorServiceException, get_tor_proxies, setup_custom_logger


class MockedPsutilProcess:
Expand Down

0 comments on commit 5c6bfea

Please sign in to comment.