def connection_lost(self, exc):
        """
        asyncio.Protocol member - called upon when a socket closes.

        Parameters
        ----------
        exc : Exception or None
            Error if connection closed unexpectedly, None if closed cleanly.
        """
        if exc:
            log.error((id(self), exc) % "%d connection_lost %s")
        else:
            log.info("%d connection_lost" % id(self))
dataset/ETHPy150Open pyGrowler/Growler/growler/protocol.py/GrowlerProtocol.connection_lost/swapped operands of `%`