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:
Adrian Sampson 2016-02-28 15:03:51 -08:00
parent d53019f9db
commit e54c7eec3d
129 changed files with 130 additions and 130 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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__)

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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)."""

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -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

View file

@ -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_

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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."""

View file

@ -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.
""" """

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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