remove packet_type from repr() as given by the class name

pull/8/head
Nicolas Jouanin 2015-09-09 22:29:55 +02:00
rodzic 008b99b5a4
commit 5d6732b1ac
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -105,8 +105,8 @@ class MQTTFixedHeader:
return None
def __repr__(self):
return type(self).__name__ + '(type={0}, length={1}, flags={2})'.\
format(self.packet_type, self.remaining_length, hex(self.flags))
return type(self).__name__ + '(length={0}, flags={1})'.\
format(self.remaining_length, hex(self.flags))
class MQTTVariableHeader(metaclass=abc.ABCMeta):