Mercurial > p > roundup > code
view roundup/anypy/dbm_.py @ 4372:4d2fcbaaf2e5
- update changelog and give credits to reporter
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Fri, 09 Apr 2010 09:50:26 +0000 |
| parents | 661466ba19cd |
| children | 0d9369d35483 |
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
