Skip to content

Commit fd3137c

Browse files
author
Richard Jones
committed
add missing file
1 parent 7f91ef5 commit fd3137c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

roundup/anypy/dbm_.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# In Python 3 the "anydbm" module was renamed to be "dbm" which is now a
2+
# package containing the various implementations. The "wichdb" module's
3+
# whichdb() function was moved to the new "dbm" module.
4+
5+
try:
6+
# old school first because <3 had a "dbm" module too...
7+
import anydbm
8+
from whichdb import whichdb
9+
except ImportError:
10+
# python 3+
11+
import dbm as anydbm
12+
whichdb = anydbm.whichdb

0 commit comments

Comments
 (0)