This document describes the current stable version of py-amqp (2.0). For development docs, go here.

amqp.utils

class amqp.utils.NullHandler(level=0)[source]
emit(record)[source]
amqp.utils.bytes_to_str(s)[source]
amqp.utils.coro(gen)[source]
amqp.utils.get_errno(exc)[source]

socket.error and IOError first got the .errno attribute in Py2.7

amqp.utils.get_logger(logger)[source]
amqp.utils.set_cloexec(fd, cloexec)[source]
amqp.utils.str_to_bytes(s)[source]