mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +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
|
break
|
||||||
else:
|
else:
|
||||||
raise ImportError, "no dbm clone found; tried %s" % _names
|
raise ImportError, "no dbm clone found; tried %s" % _names
|
||||||
|
|
||||||
|
error = _mod.error
|
||||||
|
|
||||||
def open(file, flag = 'r', mode = 0666):
|
def open(file, flag = 'r', mode = 0666):
|
||||||
return _mod.open(file, flag, mode)
|
return _mod.open(file, flag, mode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue