summaryrefslogtreecommitdiff
path: root/metaserver/metastruct.py
diff options
context:
space:
mode:
Diffstat (limited to 'metaserver/metastruct.py')
-rw-r--r--metaserver/metastruct.py4
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:])