Mercurial > code > home > repos > light9
diff bin/dmxserver @ 1860:5bcb950024af
reformat python
Ignore-this: 7bbe37d199612c9c74ef2904c3f13553
author | drewp@bigasterisk.com |
---|---|
date | Wed, 22 May 2019 00:09:13 +0000 |
parents | f066d6e874db |
children |
line wrap: on
line diff
--- a/bin/dmxserver Wed May 22 00:08:22 2019 +0000 +++ b/bin/dmxserver Wed May 22 00:09:13 2019 +0000 @@ -24,7 +24,6 @@ if parport fails, run in dummy mode (and make an option for that too) """ - from twisted.internet import reactor from twisted.web import xmlrpc, server import sys, time, os @@ -127,7 +126,7 @@ lastseen = self.lastseen[cid] if lastseen < now - purge_age: print(("forgetting client %s (no activity for %s sec)" % - (cid, purge_age))) + (cid, purge_age))) try: del self.clientlevels[cid] except KeyError: @@ -184,8 +183,8 @@ def printlevels(self): """write all the levels to stdout""" - print("Levels:", "".join( - ["% 2d " % (x * 100) for x in self.combinedlevels])) + print("Levels:", + "".join(["% 2d " % (x * 100) for x in self.combinedlevels])) def printstats(self): """print the clock, freq, etc, with a \r at the end"""