#NEWLINE# def __init__( self , connection , channel_id = None , auto_decode = True ) : #NEWLINE# #INDENT# "Create a channel bound to a connection and using the specified numeric channel_id, and\n        open on the server\n\n        If `auto_decode` is enabled (default), incoming Message bodies will be automatically decoded\n        to `str` if possible.\n\n        :param connection: the channel's associated Connection\n        :param channel_id: the channel's assigned channel ID\n        :param auto_decode: enable auto decoding of message bodies\n        :type connection: amqpy.connection.Connection\n        :type channel_id: int or None\n        :type auto_decode: bool\n        " #NEWLINE# if channel_id : #NEWLINE# #INDENT# connection . _claim_channel_id ( channel_id ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# channel_id = connection . _get_free_channel_id ( ) #NEWLINE# #UNINDENT# super ( Channel , self ) . __init__ ( connection , channel_id ) #NEWLINE# self . auto_decode = auto_decode #NEWLINE# self . is_open = False #NEWLINE# self . active = True #NEWLINE# self . mode = 0 #NEWLINE# self . returned_messages = Queue ( ) #NEWLINE# self . callbacks = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . cancel_callbacks = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . no_ack_consumers = set ( ) #NEWLINE# self . _open ( )