[Python-checkins] python/dist/src/Lib UserDict.py,1.28,1.29

gvanrossum at users.sourceforge.net gvanrossum at users.sourceforge.net
Sun Jan 16 01:14:55 CET 2005


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

Modified Files:
	UserDict.py 
Log Message:
Use decorators.


Index: UserDict.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/UserDict.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- UserDict.py	27 May 2004 09:41:04 -0000	1.28
+++ UserDict.py	16 Jan 2005 00:14:52 -0000	1.29
@@ -63,12 +63,12 @@
         return self.data.popitem()
     def __contains__(self, key):
         return key in self.data
+    @classmethod
     def fromkeys(cls, iterable, value=None):
         d = cls()
         for key in iterable:
             d[key] = value
         return d
-    fromkeys = classmethod(fromkeys)
 
 class IterableUserDict(UserDict):
     def __iter__(self):



More information about the Python-checkins mailing list