diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-07-07 11:16:05 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-07-07 11:16:05 (GMT) |
commit | 9f96789cdcb4548ecb9708fe78ffabedecd2d14c (patch) | |
tree | 07d8d9504ea7882990731799164e80c6c732e0f1 /Lib/dbm/__init__.py | |
parent | 74a146d3acaa07c7176f3fa41607cc8224acdbcd (diff) | |
parent | b08495bbcfea7440f56bbc786b64cbaadaeb604f (diff) | |
download | cpython-9f96789cdcb4548ecb9708fe78ffabedecd2d14c.zip cpython-9f96789cdcb4548ecb9708fe78ffabedecd2d14c.tar.gz cpython-9f96789cdcb4548ecb9708fe78ffabedecd2d14c.tar.bz2 |
#17198: merge with 3.3.
Diffstat (limited to 'Lib/dbm/__init__.py')
-rw-r--r-- | Lib/dbm/__init__.py | 5 |
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*. |