X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fhash%2FMKhash.py;h=83590e56eda879009f8bceddd81b512a9fd8b9ee;hb=0dba89b8d68560742080545626bc0c4d95a90451;hp=d11a701e316005d291e0cc9dc25eef454238a0cd;hpb=e75d2c94f9bd326ebaace635a06599a1be35b024;p=m_lib.git diff --git a/m_lib/hash/MKhash.py b/m_lib/hash/MKhash.py index d11a701..83590e5 100644 --- a/m_lib/hash/MKhash.py +++ b/m_lib/hash/MKhash.py @@ -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)