From c2e7d59db7a21de8d3712fc03dd5779604607a86 Mon Sep 17 00:00:00 2001
From: Peter Kessen
Date: Sat, 20 Feb 2016 14:36:56 +0100
Subject: [PATCH] Removed import of unicode_literals from plugin web
---
beetsplug/web/__init__.py | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py
index 377915626..6136e3ad3 100644
--- a/beetsplug/web/__init__.py
+++ b/beetsplug/web/__init__.py
@@ -14,8 +14,7 @@
# included in all copies or substantial portions of the Software.
"""A Web interface to beets."""
-from __future__ import (division, absolute_import, print_function,
- unicode_literals)
+from __future__ import (division, absolute_import, print_function)
from beets.plugins import BeetsPlugin
from beets import ui
@@ -264,9 +263,9 @@ class WebPlugin(BeetsPlugin):
})
def commands(self):
- cmd = ui.Subcommand('web', help='start a Web interface')
- cmd.parser.add_option('-d', '--debug', action='store_true',
- default=False, help='debug mode')
+ cmd = ui.Subcommand('web', help=u'start a Web interface')
+ cmd.parser.add_option(u'-d', u'--debug', action='store_true',
+ default=False, help=u'debug mode')
def func(lib, opts, args):
args = ui.decargs(args)
@@ -278,7 +277,7 @@ class WebPlugin(BeetsPlugin):
app.config['lib'] = lib
# Enable CORS if required.
if self.config['cors']:
- self._log.info('Enabling CORS with origin: {0}',
+ self._log.info(u'Enabling CORS with origin: {0}',
self.config['cors'])
from flask.ext.cors import CORS
app.config['CORS_ALLOW_HEADERS'] = "Content-Type"