Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0182c06

Browse files
committed
inherit error from _mod.error
1 parent 13ad35a commit 0182c06

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/anydbm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,8 @@
4747
break
4848
else:
4949
raise ImportError, "no dbm clone found; tried %s" % _names
50+
51+
error = _mod.error
52+
5053
def open(file, flag = 'r', mode = 0666):
5154
return _mod.open(file, flag, mode)

0 commit comments

Comments
 (0)