From 10e52dbe28ffee90a6c0ff42a84f367ddc635789 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Mon, 25 Oct 2004 16:04:20 +0000 Subject: Removed superfluous **kwargs constructor cruft: this class predates the dict(**kwargs) feature. --- Lib/plat-mac/plistlib.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Lib/plat-mac/plistlib.py b/Lib/plat-mac/plistlib.py index 044b298..5d6044e 100644 --- a/Lib/plat-mac/plistlib.py +++ b/Lib/plat-mac/plistlib.py @@ -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] -- cgit v0.12