[Python-checkins] python/dist/src/Lib/plat-mac plistlib.py,1.7,1.8

jvr at users.sourceforge.net jvr at users.sourceforge.net
Mon Oct 25 18:04:29 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20675

Modified Files:
	plistlib.py 
Log Message:
Removed superfluous **kwargs constructor cruft: this class predates
the dict(**kwargs) feature.


Index: plistlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/plistlib.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- plistlib.py	25 Oct 2004 15:10:42 -0000	1.7
+++ plistlib.py	25 Oct 2004 16:04:20 -0000	1.8
@@ -258,14 +258,6 @@
     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]



More information about the Python-checkins mailing list