commit | 9914227caa4f25b7442ea82cd6feab68821bb011 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Sat Feb 08 03:18:58 2003 +0000 |
committer | Barry Warsaw <barry@python.org> | Sat Feb 08 03:18:58 2003 +0000 |
tree | a26c22ef86bb8379b60d8c6ec4e6979ba8d1d041 | |
parent | 07534a607bd3d2fd232323811a83279acda10885 [diff] [blame] |
Fix compatibility for earlier versions of Python (than 2.3), which doesn't have UserDict.DictMixin.
diff --git a/Lib/bsddb/dbobj.py b/Lib/bsddb/dbobj.py index f274d56..889e554 100644 --- a/Lib/bsddb/dbobj.py +++ b/Lib/bsddb/dbobj.py
@@ -16,7 +16,12 @@ # import db -from UserDict import DictMixin + +try: + from UserDict import DictMixin +except ImportError: + # DictMixin is new in Python 2.3 + class DictMixin: pass class DBEnv: def __init__(self, *args, **kwargs):