From: Alfredo Deza Date: Tue, 10 Sep 2013 14:09:42 +0000 (-0400) Subject: fix py3 compatibility with dict.items() X-Git-Tag: 0.0.1~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=23f900a6b9208f50283c3449169045e31c8760e3;p=remoto.git fix py3 compatibility with dict.items() --- diff --git a/remoto/__init__.py b/remoto/__init__.py index f825c73..77ccb86 100644 --- a/remoto/__init__.py +++ b/remoto/__init__.py @@ -2,5 +2,3 @@ from .connection import Connection __version__ = '0.0.1' - - diff --git a/remoto/log.py b/remoto/log.py index b9a4d45..35c6ce2 100644 --- a/remoto/log.py +++ b/remoto/log.py @@ -5,7 +5,7 @@ def reporting(conn, result): while True: try: received = result.receive() - level_received, message = received.items()[0] + level_received, message = list(received.items())[0] log_map[level_received](message.strip('\n')) except EOFError: break