diff --git a/light9/ascoltami/musictime_client.py b/light9/ascoltami/musictime_client.py --- a/light9/ascoltami/musictime_client.py +++ b/light9/ascoltami/musictime_client.py @@ -17,10 +17,7 @@ class MusicTime(object): upon request, adjusted to be more precise with the system clock """ - def __init__(self, - period=.2, - onChange=lambda position: None, - pollCurvecalc='ignored'): + def __init__(self, period=.2, onChange=lambda position: None, pollCurvecalc='ignored'): """period is the seconds between http time requests. @@ -67,8 +64,7 @@ class MusicTime(object): def cb(response): if response.code != 200: - raise ValueError("%s %s", response.code, - (yield response.content())) + raise ValueError("%s %s", response.code, (yield response.content())) position = yield response.json() diff --git a/light9/ascoltami/webapp.py b/light9/ascoltami/webapp.py --- a/light9/ascoltami/webapp.py +++ b/light9/ascoltami/webapp.py @@ -34,14 +34,15 @@ class config(cyclone.web.RequestHandler) def get(self): self.set_header("Content-Type", "application/json") self.write( - json.dumps(dict( - host=socket.gethostname(), - show=str(showUri()), - times={ - # these are just for the web display. True values are on Player.__init__ - 'intro': 4, - 'post': 0 - }))) + json.dumps( + dict( + host=socket.gethostname(), + show=str(showUri()), + times={ + # these are just for the web display. True values are on Player.__init__ + 'intro': 4, + 'post': 0 + }))) def playerSongUri(graph, player):