Import RELEASE_* directly from respective files

Add a TODO about removing imports from `const/__init__.py`
This commit is contained in:
Laurent Monin
2023-09-25 08:24:12 +02:00
committed by Philipp Wolfer
parent fb7ddcc394
commit f2da2b7234
5 changed files with 8 additions and 6 deletions

View File

@@ -120,6 +120,8 @@ for k, v in MB_ATTRIBUTES.items():
elif k.startswith('DB:release_status/name:'):
RELEASE_STATUS[v] = v
# TODO: remove those 4 imports before 3.0 release
# Release countries
from picard.const.countries import ( # noqa: F401,E402 # pylint: disable=unused-import
RELEASE_COUNTRIES,

View File

@@ -33,12 +33,12 @@ from PyQt5 import (
)
from picard.const import (
RELEASE_COUNTRIES,
RELEASE_FORMATS,
RELEASE_PRIMARY_GROUPS,
RELEASE_SECONDARY_GROUPS,
RELEASE_STATUS,
)
from picard.const.countries import RELEASE_COUNTRIES
from picard.util.tags import TAG_NAMES
from picard.ui import PicardDialog

View File

@@ -42,7 +42,7 @@ from picard.config import (
TextOption,
get_config,
)
from picard.const import UI_LANGUAGES
from picard.const.languages import UI_LANGUAGES
from picard.const.sys import IS_MACOS
from picard.util import strxfrm

View File

@@ -38,11 +38,11 @@ from picard.config import (
TextOption,
get_config,
)
from picard.const import (
ALIAS_LOCALES,
from picard.const.locales import ALIAS_LOCALES
from picard.const.scripts import (
SCRIPTS,
scripts_sorted_by_localized_name,
)
from picard.const.scripts import scripts_sorted_by_localized_name
from picard.ui import PicardDialog
from picard.ui.moveable_list_view import MoveableListView

View File

@@ -37,11 +37,11 @@ from picard.config import (
get_config,
)
from picard.const import (
RELEASE_COUNTRIES,
RELEASE_FORMATS,
RELEASE_PRIMARY_GROUPS,
RELEASE_SECONDARY_GROUPS,
)
from picard.const.countries import RELEASE_COUNTRIES
from picard.const.sys import IS_WIN
from picard.util import strxfrm