diff --git a/openlp/core/utils/__init__.py b/openlp/core/utils/__init__.py index cf4eb4675..6706750b5 100644 --- a/openlp/core/utils/__init__.py +++ b/openlp/core/utils/__init__.py @@ -39,9 +39,10 @@ from subprocess import Popen, PIPE import sys import urllib2 +from PyQt4 import QtGui, QtCore + from openlp.core.lib import Registry, Settings -from PyQt4 import QtGui, QtCore if sys.platform != u'win32' and sys.platform != u'darwin': try: @@ -50,7 +51,7 @@ if sys.platform != u'win32' and sys.platform != u'darwin': except ImportError: XDG_BASE_AVAILABLE = False -from openlp.core.lib import translate, check_directory_exists +from openlp.core.lib import translate log = logging.getLogger(__name__) APPLICATION_VERSION = {} diff --git a/openlp/core/utils/applocation.py b/openlp/core/utils/applocation.py index 611e5b731..e35b41fce 100644 --- a/openlp/core/utils/applocation.py +++ b/openlp/core/utils/applocation.py @@ -31,11 +31,9 @@ The :mod:`openlp.core.utils` module provides the utility libraries for OpenLP. """ import logging import os -import re import sys -import urllib2 -from openlp.core.lib import Registry, Settings +from openlp.core.lib import Settings from openlp.core.utils import _get_frozen_path @@ -47,7 +45,7 @@ if sys.platform != u'win32' and sys.platform != u'darwin': XDG_BASE_AVAILABLE = False import openlp -from openlp.core.lib import translate, check_directory_exists +from openlp.core.lib import check_directory_exists log = logging.getLogger(__name__)