diff options
author | Diego Roversi <diegor@tiscali.it> | 2019-09-08 22:05:57 +0200 |
---|---|---|
committer | Diego Roversi <diegor@tiscali.it> | 2019-09-08 22:05:57 +0200 |
commit | c23b138ed72d794521b19ff7d8076b32b0b7bf46 (patch) | |
tree | c8e82a4ca4da05ba1ad28d4ff64a157bc1eb7952 /metaserver/metastruct.py | |
parent | 1d9925c287b318ec21343e2682b51ab6a36ae8db (diff) |
2to3
Diffstat (limited to 'metaserver/metastruct.py')
-rw-r--r-- | metaserver/metastruct.py | 4 |
1 files changed, 2 insertions, 2 deletions
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:]) |