mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
inherit error from _mod.error
This commit is contained in:
parent
13ad35a7d6
commit
0182c068ab
1 changed files with 3 additions and 0 deletions
|
@ -47,5 +47,8 @@ for _name in _names:
|
|||
break
|
||||
else:
|
||||
raise ImportError, "no dbm clone found; tried %s" % _names
|
||||
|
||||
error = _mod.error
|
||||
|
||||
def open(file, flag = 'r', mode = 0666):
|
||||
return _mod.open(file, flag, mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue