@@ -52,11 +52,11 @@ DEFAULT_CHARSET = 'latin1' MAX_PACKET_LENGTH = 256*256*256-1 def dump_packet(data): - + def is_ascii(data): if byte2int(data) >= 65 and byte2int(data) <= 122: #data.isalnum(): return data return '.' print "packet length %d" % len(data) @@ -713,11 +713,11 @@ # def _execute_command(self, command, sql): self._send_command(command, sql) - + def _request_authentication(self): self._send_authentication() def _send_authentication(self): sock = self.socket @@ -928,5 +928,6 @@ description.append(field.description()) eof_packet = self.connection.read_packet() assert eof_packet.is_eof_packet(), 'Protocol error, expecting EOF' self.description = tuple(description) +