mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 00:15:20 +01:00
Removed import of unicode_literals from plugin web
This commit is contained in:
parent
7155999d00
commit
c2e7d59db7
1 changed files with 5 additions and 6 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue