diff --git a/backend/SystemUpdater/Core/OriginFilter.py b/backend/SystemUpdater/Core/OriginFilter.py index 41d69de..0d5d8ea 100644 --- a/backend/SystemUpdater/Core/OriginFilter.py +++ b/backend/SystemUpdater/Core/OriginFilter.py @@ -1,6 +1,4 @@ #!/usr/bin/python3 - -from types import coroutine import apt import apt_pkg import fnmatch @@ -13,22 +11,13 @@ import string import subprocess import json try: - from typing import AbstractSet, DefaultDict, Dict, Iterable, List - # AbstractSet # pyflakes - # DefaultDict # pyflakes - # Dict # pyflakes - # Iterable # pyflakes - # List # pyflakes - from typing import Set, Tuple, Union - # Set # pyflakes - # Tuple # pyflakes + from typing import List + from typing import Union except ImportError: pass from gettext import gettext as _ -import apt -import apt_pkg SYSTEM_UPDATER_CORE_LIB_PATH="/usr/share/kylin-system-updater/" sys.path.append(SYSTEM_UPDATER_CORE_LIB_PATH) from SystemUpdater.Core.utils import get_config_patch diff --git a/backend/setup.cfg b/backend/setup.cfg index f5ba309..a9eefe5 100644 --- a/backend/setup.cfg +++ b/backend/setup.cfg @@ -11,5 +11,5 @@ formats = bztar [nosetests] match=test -[install] -skip-build=0 +# [install] +# skip-build=0