Commit 9c0445bc authored by Antoine Millet's avatar Antoine Millet
Browse files

RpcConnection representation doesn't display the socket fd anymore (can cause...

RpcConnection representation doesn't display the socket fd anymore (can cause a bug if the socket is closed).
parent 13bd0ea3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ class RpcConnection(object):
        return cls(sock, manager, handler)

    def __repr__(self):
        return '<RpcConnection fd:%s>' % self.get_fd()
        return '<RpcConnection object>'

    def __hash__(self):
        return self._sock.__hash__()