]> arthur.barton.de Git - bup.git/commitdiff
tindex: add 0o to current octal literal
authorJulien Goodwin <jgoodwin@studio442.com.au>
Thu, 30 Aug 2018 09:57:18 +0000 (19:57 +1000)
committerRob Browning <rlb@defaultvalue.org>
Sat, 1 Sep 2018 17:44:15 +0000 (12:44 -0500)
Needed for python3.

This preserves current behaviour, but since I get no test failures if I
just chop of the leading 0 and make it a normal int there's a good
chance there's underlying breakage.

Signed-off-by: Julien Goodwin <jgoodwin@studio442.com.au>
[rlb@defaultvalue.org: adjust commit message summary]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/tindex.py

index c79330f8036b029e15d85b990abd257792b7af1f..15be26627776598b02d763a85da2a91a5c666202 100644 (file)
@@ -58,7 +58,7 @@ def dump(m):
 def fake_validate(*l):
     for i in l:
         for e in i:
-            e.validate(0100644, index.FAKE_SHA)
+            e.validate(0o100644, index.FAKE_SHA)
             e.repack()
 
 def eget(l, ename):