Commit da06480e authored by Benjamin Winger's avatar Benjamin Winger

removed unnecessary imports

parent e6f41298
Pipeline #57611736 passed with stages
in 10 minutes and 24 seconds
# Copyright 2019 Portmod Authors
# Distributed under the terms of the GNU General Public License v3
from colorama import init, Fore, Back, Style
from colorama import init, Fore, Style
init()
......
......@@ -4,16 +4,7 @@
import sys
import os
import shutil
import re
import argparse
import fileinput
import fnmatch
import tempfile
import subprocess
import shlex
from pathlib import Path
from itertools import chain
import configparser
import git
import json
import io
......@@ -21,12 +12,9 @@ from portmod.log import warn, err
from portmod.globals import (
TMP_DIR,
MOD_DIR,
OPENMW_CONFIG,
OPENMW_CONFIG_DIR,
INSTALLED_DB,
)
from portmod.repos import REPOS
import portmod.repo
from portmod.repo.loader import load_file, load_mod, load_installed_mod
from portmod.repo.deps import (
find_dependent,
......@@ -37,18 +25,12 @@ from portmod.repo.deps import (
sort_config,
newer_version,
)
from portmod.repo.use import add_use, remove_use, satisfies_use
from portmod.repo.use import satisfies_use
from portmod.repo.util import select_mod, KeywordDep, LicenseDep, get_hash
from portmod.config import (
add_config,
find_config,
find_config_subdirs,
remove_config,
remove_config_subdirs,
check_config,
check_config_subdirs,
read_config,
write_config,
)
from portmod.repo.sets import add_set, remove_set, get_set
from portmod.repo.keywords import add_keyword
......@@ -57,7 +39,6 @@ from portmod.mod import install_mod, remove_mod
from portmod.prompt import prompt_bool
from portmod.importer import import_mod
from portmod.repo.manifest import create_manifest, get_manifest, Manifest, FileType
from portmod.progress import wait_subprocess
from portmod.query import query_installed, query_insensitive, display_search_results
from portmod.repo.download import is_downloaded
from colorama import Fore
......
......@@ -3,7 +3,6 @@
import shutil
import subprocess
import re
import shlex
# Detects masters using tes3cmd
......
......@@ -2,12 +2,10 @@
# Distributed under the terms of the GNU General Public License v3
import os
import sys
import shutil
import patoolib
import git
from colorama import Fore
from distutils.dir_util import copy_tree
from portmod.globals import MOD_DIR, TMP_DIR, INSTALLED_DB
from portmod.repo.download import download_mod
from portmod.repo.loader import load_installed_mod
......
......@@ -7,14 +7,12 @@ from colorama import Fore
from portmod.repo.loader import load_mod, load_all_installed, load_installed_mod
from portmod.repo.atom import atom_sat, parse_atom, newer_atom
from portmod.repo.sets import get_set
from portmod.repo.use import get_use, check_required_use, satisfies_use, satisfies_uselist
from portmod.repo.use import get_use, check_required_use, satisfies_uselist
from portmod.repo.util import select_mod
from portmod.repo.manifest import FileType, get_download_size
from portmod.repo.download import get_download
from portmod.repo.manifest import get_download_size
from portmod.repo.textures import select_texture_size
from portmod.config import read_config, write_config
from portmod.colour import colour, lred, bright, lgreen
from portmod.globals import GLOBAL_USE
from portmod.tsort import tsort
from portmod.masters import get_masters
from portmod.log import warn, err
......
......@@ -2,7 +2,6 @@
# Distributed under the terms of the GNU General Public License v3
import os
import configparser
from portmod.repo.atom import atom_sat
......
......@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v3
import os
from portmod.globals import ARCH, ACCEPT_KEYWORDS, PORTMOD_CONFIG_DIR
from portmod.globals import ARCH, PORTMOD_CONFIG_DIR
from portmod.repo.flags import add_flag, remove_flag, get_flags
__LOCAL_KEYWORDS = None
......
......@@ -3,11 +3,10 @@
import importlib.machinery
import glob
import configparser
import os
from portmod.log import warn
from portmod.repo.atom import parse_atom, atom_sat
from portmod.globals import PORTMOD_CONFIG, INSTALLED_DB
from portmod.globals import INSTALLED_DB
from portmod.repos import REPOS
from portmod.repo.metadata import get_categories
from portmod.repo.use import get_use
......
......@@ -4,14 +4,11 @@
from enum import Enum
import os
from portmod.repo.download import (
download,
download_source,
get_filename,
get_hash,
get_download,
clobber_spaces,
)
from portmod.repo.textures import select_texture_size
from portmod.log import err
from portmod.repo.use import satisfies_use
......
......@@ -8,8 +8,7 @@ import re
import configparser
from portmod.globals import GLOBAL_USE, PORTMOD_CONFIG_DIR, PORTMOD_CONFIG
from portmod.repo.util import select_mod
import portmod.repo.loader
from portmod.repo.atom import atom_sat
import portmod.repo.loader as loader
from portmod.repo.flags import get_flags, add_flag, remove_flag
from portmod.repo.textures import select_texture_size
......
......@@ -2,9 +2,8 @@
# Distributed under the terms of the GNU General Public License v3
import hashlib
from portmod.prompt import prompt_bool
from portmod.repo.keywords import accepts, accepts_testing, get_keywords, add_keyword
from portmod.repo.metadata import get_license_groups, has_eula, is_license_accepted
from portmod.repo.keywords import accepts, accepts_testing, get_keywords
from portmod.repo.metadata import has_eula, is_license_accepted
from portmod.globals import ARCH
BUF_SIZE = 65536
......
......@@ -14,7 +14,6 @@ from portmod.repo.use import satisfies_use
from portmod.repo.manifest import get_manifest
from portmod.repo.util import get_hash
from portmod.repo.metadata import (
get_license,
get_global_use,
get_mod_metadata,
license_exists,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment