From acad8ab7a2732da3495911932e597da99d694963 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Tue, 20 May 2014 22:35:38 +0200 Subject: [PATCH] http: Use single quotes --- mopidy/http/actor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mopidy/http/actor.py b/mopidy/http/actor.py index af0b104d..5750541c 100644 --- a/mopidy/http/actor.py +++ b/mopidy/http/actor.py @@ -54,7 +54,7 @@ class HttpFrontend(pykka.ThreadingActor, CoreListener): static_dir = self.config['http']['static_dir'] # either default mopidy or user defined path to files - primary_dir = (r"/(.*)", StaticFileHandler, { + primary_dir = (r'/(.*)', StaticFileHandler, { 'path': static_dir if static_dir else mopidy_dir, 'default_filename': 'index.html' }) @@ -67,9 +67,9 @@ class HttpFrontend(pykka.ThreadingActor, CoreListener): # TODO: Dynamically define all endpoints routes.extend([ - (r"/mopidy/ws/?", handlers.WebSocketHandler, {'actor': self}), - (r"/mopidy/rpc", handlers.JsonRpcHandler, {'actor': self}), - (r"/mopidy/(.*)", StaticFileHandler, { + (r'/mopidy/ws/?', handlers.WebSocketHandler, {'actor': self}), + (r'/mopidy/rpc', handlers.JsonRpcHandler, {'actor': self}), + (r'/mopidy/(.*)', StaticFileHandler, { 'path': mopidy_dir, 'default_filename': 'mopidy.html' }), primary_dir,