summaryrefslogtreecommitdiffstats
path: root/Lib/anydbm.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/anydbm.py')
-rw-r--r--Lib/anydbm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/anydbm.py b/Lib/anydbm.py
index 8b01ef3..8938184 100644
--- a/Lib/anydbm.py
+++ b/Lib/anydbm.py
@@ -3,7 +3,7 @@
Instead of
import dbm
- d = dbm.open(file, 'w', 0666)
+ d = dbm.open(file, 'w', 0o666)
use
@@ -63,7 +63,7 @@ if not _defaultmod:
error = tuple(_errors)
-def open(file, flag = 'r', mode = 0666):
+def open(file, flag = 'r', mode = 0o666):
# guess the type of an existing database
from whichdb import whichdb
result=whichdb(file)