]> arthur.barton.de Git - bup.git/commitdiff
vfs.py: replace "X" placeholder with the instance id in Node.__repr__().
authorRob Browning <rlb@defaultvalue.org>
Wed, 29 Jan 2014 21:19:42 +0000 (15:19 -0600)
committerRob Browning <rlb@defaultvalue.org>
Wed, 29 Jan 2014 21:19:45 +0000 (15:19 -0600)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/vfs.py

index e03b0ea61c310cdfaf200bf025ad697e2049a61f..fdd6f4dc82a26d2403d6916bb8993ff216e3f816 100644 (file)
@@ -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):