mirror of
https://github.com/python/cpython
synced 2024-09-15 23:06:25 +00:00
inherit error from _mod.error
This commit is contained in:
parent
13ad35a7d6
commit
0182c068ab
|
@ -47,5 +47,8 @@
|
|||
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…
Reference in a new issue