Skip to content

Commit

Permalink
Remove unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sambhav committed Apr 7, 2017
1 parent 51d19ce commit 8ac37eb
Show file tree
Hide file tree
Showing 19 changed files with 10 additions and 24 deletions.
2 changes: 1 addition & 1 deletion picard/album.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from picard.script import ScriptParser
from picard.ui.item import Item
from picard.util import format_time, mbid_validate
from picard.util.imagelist import ImageList, update_metadata_images
from picard.util.imagelist import update_metadata_images
from picard.util.textencoding import asciipunct
from picard.cluster import Cluster
from picard.collection import add_release_to_user_collections
Expand Down
3 changes: 1 addition & 2 deletions picard/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from __future__ import print_function
import re
import os
import ntpath
import sys
from operator import itemgetter
Expand All @@ -31,7 +30,7 @@
from picard.similarity import similarity
from picard.ui.item import Item
from picard.util import format_time, album_artist_from_path
from picard.util.imagelist import ImageList, update_metadata_images
from picard.util.imagelist import update_metadata_images
from picard.const import QUERY_LIMIT


Expand Down
2 changes: 1 addition & 1 deletion picard/coverart/providers/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import traceback

from picard import config, log
from picard import log
from picard.util import parse_amazon_url
from picard.coverart.providers import CoverArtProvider
from picard.coverart.image import CoverArtImage
Expand Down
1 change: 0 additions & 1 deletion picard/coverart/providers/caa_release_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import traceback

from picard import config, log
from picard.coverart.providers import CoverArtProvider
from picard.coverart.providers.caa import CoverArtProviderCaa
from picard.coverart.image import CaaCoverArtImage, CaaThumbnailCoverArtImage
Expand Down
2 changes: 1 addition & 1 deletion picard/coverart/providers/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import os
import re
import traceback
from picard import config, log
from picard import config
from picard.coverart.providers import CoverArtProvider, ProviderOptions
from picard.coverart.image import CoverArtImageFromFile
from picard.coverart.utils import CAA_TYPES
Expand Down
2 changes: 1 addition & 1 deletion picard/coverart/providers/whitelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import traceback

from picard import config, log
from picard import log
from picard.coverart.providers import CoverArtProvider
from picard.coverart.image import CoverArtImage

Expand Down
2 changes: 0 additions & 2 deletions picard/formats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

import sys
from mutagen import _util
from picard import log
from picard.plugin import ExtensionPoint

Expand Down
2 changes: 1 addition & 1 deletion picard/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
from PyQt5.QtCore import QObject
from picard import config, log
from picard import config
from picard.plugin import PluginFunctions, PluginPriority
from picard.similarity import similarity2
from picard.util import (
Expand Down
1 change: 0 additions & 1 deletion picard/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from PyQt5.QtCore import QUrl, QUrlQuery
from picard import config, log
from picard.const import (
MUSICBRAINZ_SERVERS,
MUSICBRAINZ_OAUTH_CLIENT_ID,
MUSICBRAINZ_OAUTH_CLIENT_SECRET,
)
Expand Down
2 changes: 1 addition & 1 deletion picard/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from picard.script import ScriptParser
from picard.const import VARIOUS_ARTISTS_ID, SILENCE_TRACK_TITLE, DATA_TRACK_TITLE
from picard.ui.item import Item
from picard.util.imagelist import ImageList, update_metadata_images
from picard.util.imagelist import update_metadata_images
import traceback


Expand Down
1 change: 0 additions & 1 deletion picard/ui/infodialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

import os.path
import cgi
import traceback
from PyQt5 import QtGui, QtCore, QtWidgets
from picard import log
Expand Down
2 changes: 0 additions & 2 deletions picard/ui/options/advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from PyQt5.QtGui import QPalette, QColor

from picard import config
from picard.ui.options import OptionsPage, register_options_page
from picard.ui.ui_options_advanced import Ui_AdvancedOptionsPage
Expand Down
1 change: 0 additions & 1 deletion picard/ui/options/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from PyQt5 import QtCore, QtWidgets
from picard import config
from picard.ui.options import OptionsPage, register_options_page
from picard.ui.ui_options_cover import Ui_CoverOptionsPage
Expand Down
3 changes: 1 addition & 2 deletions picard/ui/options/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from PyQt5.QtWidgets import QInputDialog
from PyQt5.QtCore import QUrl
from picard import config, log
from picard import config
from picard.util import webbrowser2
from picard.ui.options import OptionsPage, register_options_page
from picard.ui.ui_options_general import Ui_GeneralOptionsPage
Expand Down
1 change: 0 additions & 1 deletion picard/ui/options/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from PyQt5 import QtCore
from picard import config
from picard.ui.options import OptionsPage, register_options_page
from picard.ui.ui_options_network import Ui_NetworkOptionsPage
Expand Down
4 changes: 2 additions & 2 deletions picard/ui/options/renaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
import sys
from functools import partial
from PyQt5 import QtWidgets
from PyQt5.QtGui import QPalette, QColor
from PyQt5.QtGui import QPalette
from picard import config
from picard.const import PICARD_URLS
from picard.file import File
from picard.script import ScriptParser, SyntaxError, ScriptError, UnknownFunction
from picard.script import ScriptParser, SyntaxError, ScriptError
from picard.ui.options import OptionsPage, OptionsCheckError, register_options_page
from picard.ui.ui_options_renaming import Ui_RenamingOptionsPage
from picard.ui.util import enabledSlot
Expand Down
1 change: 0 additions & 1 deletion picard/ui/passworddialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


from PyQt5 import QtCore
from picard import config
from picard.ui import PicardDialog
from picard.ui.ui_passworddialog import Ui_PasswordDialog
Expand Down
1 change: 0 additions & 1 deletion picard/ui/sortablecheckboxlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

import sys
from functools import partial
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtCore import pyqtSignal
Expand Down
1 change: 0 additions & 1 deletion picard/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from PyQt5 import QtCore
from string import Template
# Required for compatibility with lastfmplus which imports this from here rather than loading it direct.
from functools import partial
from picard.const import MUSICBRAINZ_SERVERS


Expand Down

0 comments on commit 8ac37eb

Please sign in to comment.