From e1a36026fd34cb5ddf563b5993b9e54550dedde6 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Fri, 10 Feb 2012 22:02:53 -0500 Subject: [PATCH] fix .npl --- modules/clock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/clock.py b/modules/clock.py index cf69f0d..82c3047 100644 --- a/modules/clock.py +++ b/modules/clock.py @@ -284,7 +284,7 @@ def npl(phenny, input): """Shows the time from NPL's SNTP server.""" # for server in ('ntp1.npl.co.uk', 'ntp2.npl.co.uk'): client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) - client.sendto('\x1b' + 47 * '\0', ('ntp1.npl.co.uk', 123)) + client.sendto(b'\x1b' + 47 * b'\0', ('ntp1.npl.co.uk', 123)) data, address = client.recvfrom(1024) if data: buf = struct.unpack('B' * 48, data)