]> arthur.barton.de Git - bup.git/commitdiff
Fix types and add missing elements to Entry.__repr__() format string.
authorRob Browning <rlb@defaultvalue.org>
Tue, 28 Jun 2011 23:52:29 +0000 (18:52 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 14 Oct 2012 20:00:59 +0000 (15:00 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
lib/bup/index.py

index 4efc03be1dea32bc29b4cd378ac0460d0ef6cae0..bee5a22535af29bfef0dd2eb770f7744f5a69002 100644 (file)
@@ -75,10 +75,10 @@ class Entry:
         self.children_n = 0
 
     def __repr__(self):
-        return ("(%s,0x%04x,%d,%d,%d,%d,%d,%s/%s,0x%04x,0x%08x/%d)" 
+        return ("(%s,0x%04x,%d,%d,%d,%d,%d,%d,%d,%s/%s,0x%04x,0x%08x/%d)"
                 % (self.name, self.dev, self.ino, self.nlink,
                    self.ctime, self.mtime, self.uid, self.gid,
-                   self.size, oct(self.mode), oct(self.gitmode),
+                   self.size, self.mode, self.gitmode,
                    self.flags, self.children_ofs, self.children_n))
 
     def packed(self):