Remove unused constfunc imports
This commit is contained in:
parent
2fad4320d6
commit
d770c8a236
@ -41,7 +41,7 @@ LOG = logging.getLogger(".gen.utils.file")
|
||||
# Gramps modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from ..constfunc import win, mac, conv_to_unicode, get_env_var
|
||||
from ..constfunc import win, mac, get_env_var
|
||||
from ..const import TEMP_DIR, USER_HOME, ENV, GRAMPS_LOCALE as glocale
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -49,7 +49,6 @@ from gi.repository import GLib
|
||||
from ...utils import is_right_click, open_file_with_default_application
|
||||
from ...dbguielement import DbGUIElement
|
||||
from ...selectors import SelectorFactory
|
||||
from gramps.gen.constfunc import win, conv_to_unicode
|
||||
from gramps.gen.lib import MediaObject, MediaRef
|
||||
from gramps.gen.db import DbTxn
|
||||
from gramps.gen.utils.file import (media_path_full, media_path, relative_path,
|
||||
|
@ -71,7 +71,6 @@ from gi.repository import Gtk
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gen.filters import SearchFilter, ExactSearchFilter
|
||||
from gramps.gen.constfunc import conv_to_unicode, handle2internal
|
||||
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
||||
from .basemodel import BaseModel
|
||||
|
||||
|
@ -51,7 +51,7 @@ _ = glocale.translation.gettext
|
||||
# Gramps modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gen.constfunc import conv_to_unicode, handle2internal, win
|
||||
from gramps.gen.constfunc import handle2internal
|
||||
from gramps.gen.db.dbconst import *
|
||||
from . import BSDDBTxn
|
||||
from gramps.gen.errors import DbError
|
||||
|
@ -59,7 +59,6 @@ from gramps.gen.utils.string import gender as gender_map
|
||||
from gramps.gen.utils.id import create_id
|
||||
from gramps.gen.utils.location import located_in
|
||||
from gramps.gen.lib.eventroletype import EventRoleType
|
||||
from gramps.gen.constfunc import conv_to_unicode
|
||||
from gramps.gen.config import config
|
||||
from gramps.gen.display.place import displayer as place_displayer
|
||||
from gramps.gen.utils.libformatting import ImportInfo
|
||||
|
@ -132,7 +132,6 @@ from gramps.gen.db.dbconst import EVENT_KEY
|
||||
from gramps.gui.dialog import WarningDialog
|
||||
from gramps.gen.lib.const import IDENTICAL, DIFFERENT
|
||||
from gramps.gen.lib import (StyledText, StyledTextTag, StyledTextTagType)
|
||||
from gramps.gen.constfunc import conv_to_unicode, win
|
||||
from gramps.plugins.lib.libplaceimport import PlaceImport
|
||||
from gramps.gen.display.place import displayer as place_displayer
|
||||
|
||||
|
@ -51,7 +51,6 @@ from gi.repository import Gtk
|
||||
from gramps.gui.utils import open_file_with_default_application
|
||||
from gramps.gui.views.listview import ListView, TEXT, MARKUP, ICON
|
||||
from gramps.gui.views.treemodels import MediaModel
|
||||
from gramps.gen.constfunc import win, conv_to_unicode
|
||||
from gramps.gen.config import config
|
||||
from gramps.gen.utils.file import (media_path, relative_path, media_path_full,
|
||||
create_checksum)
|
||||
|
@ -119,7 +119,7 @@ from gramps.gen.utils.string import conf_strings
|
||||
from gramps.gen.utils.file import media_path_full
|
||||
from gramps.gen.utils.alive import probably_alive
|
||||
from gramps.gen.utils.db import get_source_and_citation_referents
|
||||
from gramps.gen.constfunc import win, conv_to_unicode, get_curr_dir
|
||||
from gramps.gen.constfunc import win, get_curr_dir
|
||||
from gramps.gen.config import config
|
||||
from gramps.gen.utils.thumbnails import get_thumbnail_path, run_thumbnailer
|
||||
from gramps.gen.utils.image import image_size, resize_to_jpeg_buffer
|
||||
|
Loading…
Reference in New Issue
Block a user