mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
for UserDict to be compatible with abcs, it must subclass object
This commit is contained in:
parent
74c2577497
commit
17527bedad
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
"""A more or less complete user-defined wrapper around dictionary objects."""
|
"""A more or less complete user-defined wrapper around dictionary objects."""
|
||||||
|
|
||||||
class UserDict:
|
class UserDict(object):
|
||||||
def __init__(self, dict=None, **kwargs):
|
def __init__(self, dict=None, **kwargs):
|
||||||
self.data = {}
|
self.data = {}
|
||||||
if dict is not None:
|
if dict is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue