[Neo-report] r1872 gregory - /trunk/neo/protocol.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Feb 27 21:14:58 CET 2010
Author: gregory
Date: Sat Feb 27 21:14:56 2010
New Revision: 1872
Log:
A better repr() for packets.
Modified:
trunk/neo/protocol.py
Modified: trunk/neo/protocol.py
==============================================================================
--- trunk/neo/protocol.py [iso-8859-1] (original)
+++ trunk/neo/protocol.py [iso-8859-1] Sat Feb 27 21:14:56 2010
@@ -274,7 +274,7 @@
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 """
More information about the Neo-report
mailing list