view roundup/anypy/dbm_.py @ 6118:e6073c2291c6

Better Date filtering Allow filtering by multiple date ranges or empty date. Date ranges are separated by comma, an empty date is represented by '-'.
author Ralf Schlatterbeck <rsc@runtux.com>
date Mon, 02 Mar 2020 19:02:16 +0100
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

Roundup Issue Tracker: http://roundup-tracker.org/