def patch_tpool_proxy():
    "eventlet.tpool.Proxy doesn't work with old-style class in __str__()\n    or __repr__() calls. See bug #962840 for details.\n    We perform a monkey patch to replace those two instance methods.\n    "

    def str_method(self):
        return str(self._obj)

    def repr_method(self):
        return repr(self._obj)
    tpool.Proxy.__str__ = str_method
    tpool.Proxy.__repr__ = repr_method
eventlet.tpool.Proxy doesn't work with old-style class in __str__()
or __repr__() calls. See bug #962840 for details.
We perform a monkey patch to replace those two instance methods.
def patch_tpool_proxy():
    "eventlet.tpool.Proxy doesn't work with old-style class in __str__()\n    or __repr__() calls. See bug #962840 for details.\n    We perform a monkey patch to replace those two instance methods.\n    "

    def str_method(self):
        return str(self._obj)

    def repr_method(self):
        return repr(self._obj)
    tpool.Proxy.__str__ = str_method
    tpool.Proxy.__repr__ = repr_method