]> granicus.if.org Git - python/commitdiff
Removed superfluous **kwargs constructor cruft: this class predates
authorJust van Rossum <just@letterror.com>
Mon, 25 Oct 2004 16:04:20 +0000 (16:04 +0000)
committerJust van Rossum <just@letterror.com>
Mon, 25 Oct 2004 16:04:20 +0000 (16:04 +0000)
the dict(**kwargs) feature.

Lib/plat-mac/plistlib.py

index 044b298855ce6e990dcbadacb1672aae3517a191..5d6044eb555accb547f0407d746ad7483882f2f8 100644 (file)
@@ -258,14 +258,6 @@ class Dict(dict):
     to retrieve values, making d.foo equivalent to d["foo"].
     """
 
-    def __new__(cls, **kwargs):
-        self = dict.__new__(cls)
-        self.update(kwargs)
-        return self
-
-    def __init__(self, **kwargs):
-        self.update(kwargs)
-
     def __getattr__(self, attr):
         try:
             value = self[attr]