diff options
author | Guido van Rossum <guido@python.org> | 2005-01-16 00:16:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2005-01-16 00:16:11 (GMT) |
commit | 75b64e65f10b04e3a2bdac6d0e3db289bbd796cb (patch) | |
tree | 4351c7f8e1164c02510c187ecac7d8b4a253402d /Lib/UserDict.py | |
parent | 9ba3684ecceff35137a5bcacbc611d36855e7666 (diff) | |
download | cpython-75b64e65f10b04e3a2bdac6d0e3db289bbd796cb.zip cpython-75b64e65f10b04e3a2bdac6d0e3db289bbd796cb.tar.gz cpython-75b64e65f10b04e3a2bdac6d0e3db289bbd796cb.tar.bz2 |
Use decorators.
Diffstat (limited to 'Lib/UserDict.py')
-rw-r--r-- | Lib/UserDict.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/UserDict.py b/Lib/UserDict.py index 703f118..7168703 100644 --- a/Lib/UserDict.py +++ b/Lib/UserDict.py @@ -63,12 +63,12 @@ class UserDict: 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): |