Commit c620f660 authored by Grégory Wisniewski's avatar Grégory Wisniewski

A better repr() for packets.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1872 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 9f7345e4
......@@ -274,7 +274,7 @@ class Packet(object):
return PACKET_HEADER_SIZE + len(self._body)
def __repr__(self):
return self.__class__.__name__
return '%s[%r]' % (self.__class__.__name__, self._id)
def __eq__(self, other):
""" Compare packets with their code instead of content """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment