Mercurial > p > roundup > code
view roundup/anypy/dbm_.py @ 5039:bdeda09a5a26
Start new changelog for 1.6.0
Time to start an new changelog for 1.6.0 now that 1.5.1 has been
released.
| author | John Kristensen <john@jerrykan.com> |
|---|---|
| date | Tue, 12 Jan 2016 23:42:36 +1100 |
| parents | d5da643b3d25 |
| children |
line wrap: on
line source
# In Python 3 the "anydbm" module was renamed to be "dbm" which is now a # package containing the various implementations. The "wichdb" module's # whichdb() function was moved to the new "dbm" module. try: # old school first because <3 had a "dbm" module too... import anydbm from whichdb import whichdb except ImportError: # python 3+ import dbm as anydbm whichdb = anydbm.whichdb
