def read_table(self):
self.bitcount = self.bits = <NUM_LIT:0><EOL>tlen = unpack('<STR_LIT>', self.input.read(<NUM_LIT:4>))[<NUM_LIT:0>]<EOL>table_data = AMQPReader(self.input.read(tlen))<EOL>result = {}<EOL>while table_data.input.tell() < tlen:<EOL><INDENT>name = table_data.read_shortstr()<EOL>val = table_data.read_item()<EOL>result[name] = val<EOL><DEDENT>return result<EOL>
Read an AMQP table, and return as a Python dictionary.