X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fhash%2FZODBhash.py;h=61a1bee69780ad957333f56a1bfa4edc75fe6c91;hb=0dba89b8d68560742080545626bc0c4d95a90451;hp=fb1361d19ae00ec5e02ad9cabbec8c4615baa6fe;hpb=8d79317cdc8220ff3c2192e68fc1dfc749c3ea1c;p=m_lib.git diff --git a/m_lib/hash/ZODBhash.py b/m_lib/hash/ZODBhash.py index fb1361d..61a1bee 100644 --- a/m_lib/hash/ZODBhash.py +++ b/m_lib/hash/ZODBhash.py @@ -15,7 +15,7 @@ error = POSException.POSError # Exported for anydbm class ZODBhash: - def __init__(self, file, flag, mode=0666, trans_threshold=1000): + def __init__(self, file, flag, mode=0o666, trans_threshold=1000): create = (flag == 'n') # force recreation # if flag == 'w' or 'c' and file does not exist FileStorage will set it to 1 for us @@ -73,5 +73,5 @@ class ZODBhash: get_transaction().commit() -def open(file, flag, mode=0666): +def open(file, flag, mode=0o666): return ZODBhash(file, flag, mode)