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
get_transaction().commit()
-def open(file, flag, mode=0666):
+def open(file, flag, mode=0o666):
return ZODBhash(file, flag, mode)