From d30db3e66aca1eef53e298f837b1e1defdb45b54 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 23 Feb 2010 22:54:59 +0000 Subject: [PATCH] add missing file git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4466 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/anypy/dbm_.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roundup/anypy/dbm_.py diff --git a/roundup/anypy/dbm_.py b/roundup/anypy/dbm_.py new file mode 100644 index 0000000..093a2f1 --- /dev/null +++ b/roundup/anypy/dbm_.py @@ -0,0 +1,12 @@ +# 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 -- 2.30.2