Download:
child 63:8550f1a5ad61
parent 61:16a9800b0bf3
62:fe5e2ab8ca2d
Anton Shestakov <av6@dwimlabs.net>, Mon, 18 Jul 2016 18:38:43 +0800
viewer: split a couple of long lines

1 файлов изменено, 5 вставок(+), 2 удалений(-) [+]
viewer.py file | annotate | diff | comparison | revisions
--- a/viewer.py Mon Jul 04 18:27:36 2016 +0800
+++ b/viewer.py Mon Jul 18 18:38:43 2016 +0800
@@ -90,7 +90,9 @@
return getinfo('first({}:0, {})'.format(rev, revcount))
def getlimits(self, marks, changesets=None):
- query = 'SELECT MIN(time), MAX(time) FROM results WHERE mark = ? AND cache = ?'
+ query = (
+ 'SELECT MIN(time), MAX(time) FROM results'
+ ' WHERE mark = ? AND cache = ?')
extra = []
if changesets:
query += ' AND node IN (' + ','.join('?' * len(changesets)) + ')'
@@ -305,7 +307,8 @@
super(Viewer, self).__init__(handlers, **settings)
def listen(self, port, address='', **kwargs):
- logging.info('{} is serving on {}:{}'.format(self.__class__.__name__, address, port))
+ name = self.__class__.__name__
+ logging.info('{} is serving on {}:{}'.format(name, address, port))
super(Viewer, self).listen(port, address, **kwargs)