summaryrefslogtreecommitdiffstats
path: root/Lib/UserDict.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/UserDict.py')
-rw-r--r--Lib/UserDict.py2
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):