From c23b138ed72d794521b19ff7d8076b32b0b7bf46 Mon Sep 17 00:00:00 2001 From: Diego Roversi Date: Sun, 8 Sep 2019 22:05:57 +0200 Subject: 2to3 --- metaserver/metastruct.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'metaserver/metastruct.py') diff --git a/metaserver/metastruct.py b/metaserver/metastruct.py index 13240cc..e187b65 100644 --- a/metaserver/metastruct.py +++ b/metaserver/metastruct.py @@ -27,7 +27,7 @@ RMSG_NO_HOST = '?' def encodedict(dict): data = [] - for key, value in dict.items(): + for key, value in list(dict.items()): data.append(message('#', key, value)) return ''.join(data) @@ -69,7 +69,7 @@ class MessageSocket: if msg is None: break if msg[0] not in self.MESSAGES: - print >> sys.stderr, 'unknown message %r' % (msg[0],) + print('unknown message %r' % (msg[0],), file=sys.stderr) else: fn = self.MESSAGES[msg[0]] fn(self, *msg[1:]) -- cgit v1.2.3