]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/hash/MKhash.py
Fix octals (066 => 0o666) for Py3 compatibility
[m_lib.git] / m_lib / hash / MKhash.py
index d11a701e316005d291e0cc9dc25eef454238a0cd..83590e56eda879009f8bceddd81b512a9fd8b9ee 100644 (file)
@@ -15,7 +15,7 @@ error = ValueError
 
 
 class MKhash:
-    def __init__(self, file, flag, mode=0666, trans_threshold=1000):
+    def __init__(self, file, flag, mode=0o666, trans_threshold=1000):
         self.read_only = 0
         self._closed = 0
 
@@ -90,5 +90,5 @@ class MKhash:
             self.db.commit()
 
 
-def open(file, flag, mode=0666):
+def open(file, flag, mode=0o666):
     return MKhash(file, flag, mode)