From: Rob Browning Date: Wed, 29 Jan 2014 21:19:42 +0000 (-0600) Subject: vfs.py: replace "X" placeholder with the instance id in Node.__repr__(). X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=126e850137c9f3a5a7ba1bf56a8a72daf5b5fb36;p=packages%2Fb%2Fbup.git vfs.py: replace "X" placeholder with the instance id in Node.__repr__(). Signed-off-by: Rob Browning --- diff --git a/lib/bup/vfs.py b/lib/bup/vfs.py index e03b0ea..fdd6f4d 100644 --- a/lib/bup/vfs.py +++ b/lib/bup/vfs.py @@ -174,8 +174,9 @@ class Node: self._metadata = None def __repr__(self): - return "<%s object at X - name:%r hash:%s parent:%r>" \ - % (self.__class__, self.name, self.hash.encode('hex'), + return "<%s object at %s - name:%r hash:%s parent:%r>" \ + % (self.__class__, hex(id(self)), + self.name, self.hash.encode('hex'), self.parent.name if self.parent else None) def __cmp__(a, b):