mirror of
https://github.com/fergalmoran/picard.git
synced 2026-05-26 21:06:12 +00:00
Import RELEASE_* directly from respective files
Add a TODO about removing imports from `const/__init__.py`
This commit is contained in:
committed by
Philipp Wolfer
parent
fb7ddcc394
commit
f2da2b7234
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user