Mercurial > p > roundup > code
view roundup/anypy/dbm_.py @ 5749:b8a0421525b8 maint-1.6
Fix issue2551029: Jinja2 template install error. Remove config.ini
from templates to make sure that roundup-admin install writes a new
default config.ini based on configuration.py.
Did not transfer updates from trunk that enhanced the configuration
of backend value and the rdbms section.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 01 Jun 2019 09:09:59 -0400 |
| 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
