From 9918cbb34bf260030599ae8971983f1ca2d47013 Mon Sep 17 00:00:00 2001 From: Peter Kessen Date: Fri, 19 Feb 2016 22:35:14 +0100 Subject: [PATCH] Removed unicode_literals from plugins and vfs --- beets/plugins.py | 9 ++++----- beets/vfs.py | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/beets/plugins.py b/beets/plugins.py index 4233003ea..b78b8fe59 100755 --- a/beets/plugins.py +++ b/beets/plugins.py @@ -15,8 +15,7 @@ """Support for beets plugins.""" -from __future__ import (division, absolute_import, print_function, - unicode_literals) +from __future__ import (division, absolute_import, print_function) import inspect import traceback @@ -267,7 +266,7 @@ def load_plugins(names=()): except: log.warn( - '** error loading plugin {}:\n{}', + u'** error loading plugin {}:\n{}', name, traceback.format_exc(), ) @@ -322,8 +321,8 @@ def types(model_cls): if field in types and plugin_types[field] != types[field]: raise PluginConflictException( u'Plugin {0} defines flexible field {1} ' - 'which has already been defined with ' - 'another type.'.format(plugin.name, field) + u'which has already been defined with ' + u'another type.'.format(plugin.name, field) ) types.update(plugin_types) return types diff --git a/beets/vfs.py b/beets/vfs.py index d99031c63..75529c999 100644 --- a/beets/vfs.py +++ b/beets/vfs.py @@ -16,8 +16,7 @@ """A simple utility for constructing filesystem-like trees from beets libraries. """ -from __future__ import (division, absolute_import, print_function, - unicode_literals) +from __future__ import (division, absolute_import, print_function) from collections import namedtuple from beets import util