From 47ea4b7d8b835bb2b61d316e9e8925290f66b6b0 Mon Sep 17 00:00:00 2001 From: Andre Miller Date: Tue, 20 Jan 2015 16:06:16 +0200 Subject: [PATCH] flake8 formatting updates --- beetsplug/web/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index 9ab7619e0..5a78b5042 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -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)