]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/hashsplit.py
Use absolute_import from the __future__ everywhere
[bup.git] / lib / bup / hashsplit.py
index ddf8d0c9fa8002418381bbb8802d83d4026681c3..3cbcfc981b4e1280604712b2b0ffe2fbeff9411e 100644 (file)
@@ -1,3 +1,5 @@
+
+from __future__ import absolute_import
 import io, math, os
 
 from bup import _helpers, helpers
@@ -11,10 +13,9 @@ MAX_PER_TREE = 256
 progress_callback = None
 fanout = 16
 
-GIT_MODE_FILE = 0100644
-GIT_MODE_TREE = 040000
-GIT_MODE_SYMLINK = 0120000
-assert(GIT_MODE_TREE != 40000)  # 0xxx should be treated as octal
+GIT_MODE_FILE = 0o100644
+GIT_MODE_TREE = 0o40000
+GIT_MODE_SYMLINK = 0o120000
 
 # The purpose of this type of buffer is to avoid copying on peek(), get(),
 # and eat().  We do copy the buffer contents on put(), but that should