mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix compatibility for earlier versions of Python (than 2.3), which
doesn't have UserDict.DictMixin.
This commit is contained in:
parent
07534a607b
commit
9914227caa
2 changed files with 15 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue