From 0182c068abc98338aef681df89a372b6851b6820 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 25 Jan 1996 18:26:57 +0000 Subject: inherit error from _mod.error --- Lib/anydbm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/anydbm.py b/Lib/anydbm.py index 72dd195..2dc312d 100644 --- a/Lib/anydbm.py +++ b/Lib/anydbm.py @@ -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) -- cgit v0.12