From: Julien Goodwin Date: Thu, 30 Aug 2018 09:57:18 +0000 (+1000) Subject: tindex: add 0o to current octal literal X-Git-Tag: 0.30~58 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=commitdiff_plain;h=9cc9ca7e2b50c7a7f19f66dd48bb096ed94d278a tindex: add 0o to current octal literal 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 [rlb@defaultvalue.org: adjust commit message summary] Reviewed-by: Rob Browning Tested-by: Rob Browning --- diff --git a/lib/bup/t/tindex.py b/lib/bup/t/tindex.py index c79330f..15be266 100644 --- a/lib/bup/t/tindex.py +++ b/lib/bup/t/tindex.py @@ -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):