flake8 formatting updates

This commit is contained in:
Andre Miller 2015-01-20 16:06:16 +02:00
parent f47be23658
commit 47ea4b7d8b

View file

@ -274,14 +274,14 @@ class WebPlugin(BeetsPlugin):
app.config['lib'] = lib
## Enable CORS if required
# Enable CORS if required
if self.config['cors']:
from flask.ext.cors import CORS
app.config['CORS_ALLOW_HEADERS'] = "Content-Type"
app.config['CORS_RESOURCES'] = {
r"/*": {"origins": self.config['cors_origin'].get(str)}
}
cors = CORS(app)
CORS(app)
app.run(host=self.config['host'].get(unicode),
port=self.config['port'].get(int),
debug=opts.debug, threaded=True)