diff options
| author | Benjamin Peterson <benjamin@python.org> | 2010-06-22 18:09:02 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2010-06-22 18:09:02 (GMT) |
| commit | bde67df0cd4de5e034c2cf4bd43c0d5657649942 (patch) | |
| tree | 33b1ad6217fdcc079f6463fdcff033f73bf0edb1 /Lib/UserDict.py | |
| parent | 3ceab01cefa149ade3bed218e9c03ac791f0e8cc (diff) | |
| download | cpython-bde67df0cd4de5e034c2cf4bd43c0d5657649942.zip cpython-bde67df0cd4de5e034c2cf4bd43c0d5657649942.tar.gz cpython-bde67df0cd4de5e034c2cf4bd43c0d5657649942.tar.bz2 | |
keep UserDict an old-style class
Be generous in abc.py to allow this.
Diffstat (limited to 'Lib/UserDict.py')
| -rw-r--r-- | Lib/UserDict.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/UserDict.py b/Lib/UserDict.py index bd64f84..bb2218a 100644 --- a/Lib/UserDict.py +++ b/Lib/UserDict.py @@ -1,6 +1,6 @@ """A more or less complete user-defined wrapper around dictionary objects.""" -class UserDict(object): +class UserDict: def __init__(self, dict=None, **kwargs): self.data = {} if dict is not None: |
