summaryrefslogtreecommitdiffstats
path: root/Lib/dbm
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-07-07 11:16:05 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-07-07 11:16:05 (GMT)
commit9f96789cdcb4548ecb9708fe78ffabedecd2d14c (patch)
tree07d8d9504ea7882990731799164e80c6c732e0f1 /Lib/dbm
parent74a146d3acaa07c7176f3fa41607cc8224acdbcd (diff)
parentb08495bbcfea7440f56bbc786b64cbaadaeb604f (diff)
downloadcpython-9f96789cdcb4548ecb9708fe78ffabedecd2d14c.zip
cpython-9f96789cdcb4548ecb9708fe78ffabedecd2d14c.tar.gz
cpython-9f96789cdcb4548ecb9708fe78ffabedecd2d14c.tar.bz2
#17198: merge with 3.3.
Diffstat (limited to 'Lib/dbm')
-rw-r--r--Lib/dbm/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/dbm/__init__.py b/Lib/dbm/__init__.py
index 0609e49..5f4664a 100644
--- a/Lib/dbm/__init__.py
+++ b/Lib/dbm/__init__.py
@@ -44,6 +44,11 @@ _modules = {}
error = (error, OSError)
+try:
+ from dbm import ndbm
+except ImportError:
+ ndbm = None
+
def open(file, flag='r', mode=0o666):
"""Open or create database at path given by *file*.