Mercurial > code > home > repos > light9
diff bin/mpd_timing_test @ 1859:f066d6e874db
2to3 with these fixers: all idioms set_literal
Ignore-this: cbd28518218c2f0ddce8c4f92d3b8b33
author | drewp@bigasterisk.com |
---|---|
date | Wed, 22 May 2019 00:08:22 +0000 |
parents | 7772cc48e016 |
children |
line wrap: on
line diff
--- a/bin/mpd_timing_test Tue May 21 23:56:12 2019 +0000 +++ b/bin/mpd_timing_test Wed May 22 00:08:22 2019 +0000 @@ -11,10 +11,10 @@ """ -import xmlrpclib, time +import xmlrpc.client, time -s = xmlrpclib.ServerProxy("http://localhost:8040") +s = xmlrpc.client.ServerProxy("http://localhost:8040") start = time.time() -while 1: - print time.time() - start, s.gettime() +while True: + print(time.time() - start, s.gettime()) time.sleep(.01)