Create the dbm package from PEP 3108. #2881.

This commit is contained in:
Georg Brandl 2008-05-26 10:29:35 +00:00
parent e6f00637be
commit 0a7ac7d70d
41 changed files with 690 additions and 876 deletions

View file

@ -7,8 +7,8 @@
class Dbm:
def __init__(self, filename, mode, perm):
import dbm
self.db = dbm.open(filename, mode, perm)
import dbm.ndbm
self.db = dbm.ndbm.open(filename, mode, perm)
def __repr__(self):
s = ''