mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Standardize __future__ imports without parentheses
Since the list is short enough now, we don't need parentheses for the line wrap. This is a little less ugly.
This commit is contained in:
parent
d53019f9db
commit
e54c7eec3d
129 changed files with 130 additions and 130 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Facilities for automatically determining files' correct metadata.
|
"""Facilities for automatically determining files' correct metadata.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets import logging
|
from beets import logging
|
||||||
from beets import config
|
from beets import config
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
"""Glue between metadata sources and the matching logic."""
|
"""Glue between metadata sources and the matching logic."""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
import re
|
import re
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
releases and tracks.
|
releases and tracks.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import re
|
import re
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Searches for albums in the MusicBrainz database.
|
"""Searches for albums in the MusicBrainz database.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import musicbrainzngs
|
import musicbrainzngs
|
||||||
import re
|
import re
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""DBCore is an abstract database package that forms the basis for beets'
|
"""DBCore is an abstract database package that forms the basis for beets'
|
||||||
Library.
|
Library.
|
||||||
"""
|
"""
|
||||||
from __future__ import absolute_import
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from .db import Model, Database
|
from .db import Model, Database
|
||||||
from .query import Query, FieldQuery, MatchQuery, AndQuery, OrQuery
|
from .query import Query, FieldQuery, MatchQuery, AndQuery, OrQuery
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""The central Model and Database constructs for DBCore.
|
"""The central Model and Database constructs for DBCore.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""The Query type hierarchy for DBCore.
|
"""The Query type hierarchy for DBCore.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from operator import mul
|
from operator import mul
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Representation of type information for DBCore model fields.
|
"""Representation of type information for DBCore model fields.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from . import query
|
from . import query
|
||||||
from beets.util import str2bool
|
from beets.util import str2bool
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
"""Provides the basic, interface-agnostic workflow for importing and
|
"""Provides the basic, interface-agnostic workflow for importing and
|
||||||
autotagging music files.
|
autotagging music files.
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""The core data store and collection logic for beets.
|
"""The core data store and collection logic for beets.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ that when getLogger(name) instantiates a logger that logger uses
|
||||||
{}-style formatting.
|
{}-style formatting.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from copy import copy
|
from copy import copy
|
||||||
from logging import * # noqa
|
from logging import * # noqa
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ Internally ``MediaFile`` uses ``MediaField`` descriptors to access the
|
||||||
data from the tags. In turn ``MediaField`` uses a number of
|
data from the tags. In turn ``MediaField`` uses a number of
|
||||||
``StorageStyle`` strategies to handle format specific logic.
|
``StorageStyle`` strategies to handle format specific logic.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import mutagen
|
import mutagen
|
||||||
import mutagen.mp3
|
import mutagen.mp3
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Support for beets plugins."""
|
"""Support for beets plugins."""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import inspect
|
import inspect
|
||||||
import traceback
|
import traceback
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ interface. To invoke the CLI, just call beets.ui.main(). The actual
|
||||||
CLI commands are implemented in the ui.commands module.
|
CLI commands are implemented in the ui.commands module.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import locale
|
import locale
|
||||||
import optparse
|
import optparse
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
interface.
|
interface.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Miscellaneous utility functions."""
|
"""Miscellaneous utility functions."""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Abstraction layer to resize images using PIL, ImageMagick, or a
|
"""Abstraction layer to resize images using PIL, ImageMagick, or a
|
||||||
public resizing proxy if neither is available.
|
public resizing proxy if neither is available.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import urllib
|
import urllib
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ asyncore.
|
||||||
|
|
||||||
Bluelet: easy concurrency without all the messy parallelism.
|
Bluelet: easy concurrency without all the messy parallelism.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import socket
|
import socket
|
||||||
import select
|
import select
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Worry-free YAML configuration files.
|
"""Worry-free YAML configuration files.
|
||||||
"""
|
"""
|
||||||
from __future__ import (absolute_import, print_function, division)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import platform
|
import platform
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ This is sort of like a tiny, horrible degeneration of a real templating
|
||||||
engine like Jinja2 or Mustache.
|
engine like Jinja2 or Mustache.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import ast
|
import ast
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ To do so, pass an iterable of coroutines to the Pipeline constructor
|
||||||
in place of any single coroutine.
|
in place of any single coroutine.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import Queue
|
import Queue
|
||||||
from threading import Thread, Lock
|
from threading import Thread, Lock
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""A simple utility for constructing filesystem-like trees from beets
|
"""A simple utility for constructing filesystem-like trees from beets
|
||||||
libraries.
|
libraries.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from beets import util
|
from beets import util
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@
|
||||||
|
|
||||||
"""A namespace package for beets plugins."""
|
"""A namespace package for beets plugins."""
|
||||||
|
|
||||||
# Make this a namespace package.
|
from __future__ import division, absolute_import, print_function
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
|
# Make this a namespace package.
|
||||||
from pkgutil import extend_path
|
from pkgutil import extend_path
|
||||||
__path__ = extend_path(__path__, __name__)
|
__path__ = extend_path(__path__, __name__)
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Fetch various AcousticBrainz metadata using MBID.
|
"""Fetch various AcousticBrainz metadata using MBID.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import operator
|
import operator
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Use command-line tools to check for audio file corruption.
|
"""Use command-line tools to check for audio file corruption.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets.ui import Subcommand
|
from beets.ui import Subcommand
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ Beets library. Attempts to implement a compatible protocol to allow
|
||||||
use of the wide range of MPD clients.
|
use of the wide range of MPD clients.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from string import Template
|
from string import Template
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
music player.
|
music player.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Determine BPM by pressing a key to the rhythm."""
|
"""Determine BPM by pressing a key to the rhythm."""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Provides the %bucket{} function for path formatting.
|
"""Provides the %bucket{} function for path formatting.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import re
|
import re
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Adds Chromaprint/Acoustid acoustic fingerprinting support to the
|
"""Adds Chromaprint/Acoustid acoustic fingerprinting support to the
|
||||||
autotagger. Requires the pyacoustid library.
|
autotagger. Requires the pyacoustid library.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets import plugins
|
from beets import plugins
|
||||||
from beets import ui
|
from beets import ui
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Converts tracks or albums to external directory
|
"""Converts tracks or albums to external directory
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import threading
|
import threading
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Adds Discogs album search support to the autotagger. Requires the
|
"""Adds Discogs album search support to the autotagger. Requires the
|
||||||
discogs-client library.
|
discogs-client library.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import beets.ui
|
import beets.ui
|
||||||
from beets import logging
|
from beets import logging
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""List duplicate tracks or albums.
|
"""List duplicate tracks or albums.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import shlex
|
import shlex
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Fetch a variety of acoustic metrics from The Echo Nest.
|
"""Fetch a variety of acoustic metrics from The Echo Nest.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import socket
|
import socket
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
"""Open metadata information in a text editor to let the user edit it.
|
"""Open metadata information in a text editor to let the user edit it.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets import plugins
|
from beets import plugins
|
||||||
from beets import util
|
from beets import util
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
"""Allows beets to embed album art into file metadata."""
|
"""Allows beets to embed album art into file metadata."""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
username: user
|
username: user
|
||||||
password: password
|
password: password
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets import config
|
from beets import config
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Fetches album art.
|
"""Fetches album art.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Creates freedesktop.org-compliant .directory files on an album level.
|
"""Creates freedesktop.org-compliant .directory files on an album level.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets import ui
|
from beets import ui
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""If the title is empty, try to extract track and title from the
|
"""If the title is empty, try to extract track and title from the
|
||||||
filename.
|
filename.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets import plugins
|
from beets import plugins
|
||||||
from beets.util import displayable_path
|
from beets.util import displayable_path
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Moves "featured" artists to the title from the artist field.
|
"""Moves "featured" artists to the title from the artist field.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Provides a fuzzy matching query.
|
"""Provides a fuzzy matching query.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets.dbcore.query import StringFieldQuery
|
from beets.dbcore.query import StringFieldQuery
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
"""Warns you about things you hate (or even blocks import)."""
|
"""Warns you about things you hate (or even blocks import)."""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ modification time (mtime) of the item's source file before import.
|
||||||
|
|
||||||
Reimported albums and items are skipped.
|
Reimported albums and items are skipped.
|
||||||
"""
|
"""
|
||||||
from __future__ import (absolute_import, print_function, division)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
"""Write paths of imported files in various formats to ease later import in a
|
"""Write paths of imported files in various formats to ease later import in a
|
||||||
music player. Also allow printing the new file locations to stdout in case
|
music player. Also allow printing the new file locations to stdout in case
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Shows file metadata.
|
"""Shows file metadata.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Allows inline path template customization code in the config file.
|
"""Allows inline path template customization code in the config file.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
import itertools
|
import itertools
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Uses the `KeyFinder` program to add the `initial_key` field.
|
"""Uses the `KeyFinder` program to add the `initial_key` field.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
"""Gets genres for imported music based on Last.fm tags.
|
"""Gets genres for imported music based on Last.fm tags.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import pylast
|
import pylast
|
||||||
from pylast import TopItem, _extract, _number
|
from pylast import TopItem, _extract, _number
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Fetches, embeds, and displays lyrics.
|
"""Fetches, embeds, and displays lyrics.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import requests
|
import requests
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets.ui import Subcommand
|
from beets.ui import Subcommand
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ implemented by MusicBrainz yet.
|
||||||
[1] http://wiki.musicbrainz.org/History:How_To_Parse_Track_Listings
|
[1] http://wiki.musicbrainz.org/History:How_To_Parse_Track_Listings
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
|
|
||||||
from beets.autotag import Recommendation
|
from beets.autotag import Recommendation
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Update library's tags using MusicBrainz.
|
"""Update library's tags using MusicBrainz.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets import autotag, library, ui, util
|
from beets import autotag, library, ui, util
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""List missing tracks.
|
"""List missing tracks.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.autotag import hooks
|
from beets.autotag import hooks
|
||||||
from beets.library import Item
|
from beets.library import Item
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import mpd
|
import mpd
|
||||||
import socket
|
import socket
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ Put something like the following in your config.yaml to configure:
|
||||||
port: 6600
|
port: 6600
|
||||||
password: seekrit
|
password: seekrit
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
"""Fixes file permissions after the file gets written on import. Put something
|
"""Fixes file permissions after the file gets written on import. Put something
|
||||||
like the following in your config.yaml to configure:
|
like the following in your config.yaml to configure:
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Send the results of a query to the configured music player as a playlist.
|
"""Send the results of a query to the configured music player as a playlist.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets.ui import Subcommand
|
from beets.ui import Subcommand
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ Put something like the following in your config.yaml to configure:
|
||||||
port: 32400
|
port: 32400
|
||||||
token: token
|
token: token
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from urlparse import urljoin
|
from urlparse import urljoin
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Get a random song or album from the library.
|
"""Get a random song or album from the library.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets.ui import Subcommand, decargs, print_
|
from beets.ui import Subcommand, decargs, print_
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Uses user-specified rewriting rules to canonicalize names for path
|
"""Uses user-specified rewriting rules to canonicalize names for path
|
||||||
formats.
|
formats.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
automatically whenever tags are written.
|
automatically whenever tags are written.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets import ui
|
from beets import ui
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"""Generates smart playlists based on beets queries.
|
"""Generates smart playlists based on beets queries.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets import ui
|
from beets import ui
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Moves patterns in path formats (suitable for moving articles)."""
|
"""Moves patterns in path formats (suitable for moving articles)."""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ This plugin is POSIX-only.
|
||||||
Spec: standards.freedesktop.org/thumbnail-spec/latest/index.html
|
Spec: standards.freedesktop.org/thumbnail-spec/latest/index.html
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets.dbcore import types
|
from beets.dbcore import types
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
"""A Web interface to beets."""
|
"""A Web interface to beets."""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets import ui
|
from beets import ui
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
""" Clears tag fields in media files."""
|
""" Clears tag fields in media files."""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
"""Some common functionality for beets' test cases."""
|
"""Some common functionality for beets' test cases."""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ information or mock the environment.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from beets.plugins import BeetsPlugin
|
from beets.plugins import BeetsPlugin
|
||||||
from beets import ui
|
from beets import ui
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Tests for the album art fetchers."""
|
"""Tests for the album art fetchers."""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Tests for autotagging functionality.
|
"""Tests for autotagging functionality.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import copy
|
import copy
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Tests for the 'bucket' plugin."""
|
"""Tests for the 'bucket' plugin."""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from test._common import unittest
|
from test._common import unittest
|
||||||
from beetsplug import bucket
|
from beetsplug import bucket
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import yaml
|
import yaml
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import os.path
|
import os.path
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Test for dbcore's date-based queries.
|
"""Test for dbcore's date-based queries.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from test import _common
|
from test import _common
|
||||||
from test._common import unittest
|
from test._common import unittest
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Tests for the DBCore database abstraction.
|
"""Tests for the DBCore database abstraction.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
from mock import Mock, patch
|
from mock import Mock, patch
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
import codecs
|
import codecs
|
||||||
|
|
||||||
from mock import patch
|
from mock import patch
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
import shutil
|
import shutil
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from test._common import unittest
|
from test._common import unittest
|
||||||
from test.helper import TestHelper
|
from test.helper import TestHelper
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from test._common import unittest
|
from test._common import unittest
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Test file manipulation functionality of Item.
|
"""Test file manipulation functionality of Item.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import shutil
|
import shutil
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Tests for the 'ftintitle' plugin."""
|
"""Tests for the 'ftintitle' plugin."""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from test._common import unittest
|
from test._common import unittest
|
||||||
from test.helper import TestHelper
|
from test.helper import TestHelper
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
"""Tests for the 'ihate' plugin"""
|
"""Tests for the 'ihate' plugin"""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from test._common import unittest
|
from test._common import unittest
|
||||||
from beets import importer
|
from beets import importer
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
"""Tests for the `importadded` plugin."""
|
"""Tests for the `importadded` plugin."""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
"""Tests for the general importer functionality.
|
"""Tests for the general importer functionality.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from test._common import unittest
|
from test._common import unittest
|
||||||
from test.helper import TestHelper
|
from test.helper import TestHelper
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from mock import patch
|
from mock import patch
|
||||||
from test._common import unittest
|
from test._common import unittest
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Tests for the 'lastgenre' plugin."""
|
"""Tests for the 'lastgenre' plugin."""
|
||||||
|
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
from mock import Mock
|
from mock import Mock
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
"""Tests for non-query database functions of Item.
|
"""Tests for non-query database functions of Item.
|
||||||
"""
|
"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
"""Stupid tests that ensure logging works as expected"""
|
"""Stupid tests that ensure logging works as expected"""
|
||||||
from __future__ import (division, absolute_import, print_function)
|
from __future__ import division, absolute_import, print_function
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue