Commit 4ed6bd8a authored by Antoine Millet's avatar Antoine Millet
Browse files

Added __nonzero__ method on RpcConnection class.

parent e377978d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -100,6 +100,9 @@ class RpcConnection(object):
    def __hash__(self):
        return self._sock.__hash__()

    def __nonzero__(self):
        return self._connected

    def run(self):
        '''
        Inbound message processing loop.