summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_userdict.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2005-01-16 00:25:31 (GMT)
committerGuido van Rossum <guido@python.org>2005-01-16 00:25:31 (GMT)
commit5a8a03784e56e5931b4cdb3946494f8d15c72bd2 (patch)
tree9dcce6980365a3642c0a1c80d731586407af9346 /Lib/test/test_userdict.py
parentfee7b93c60310413db31973c13e5abb4c7620ef4 (diff)
downloadcpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.zip
cpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.tar.gz
cpython-5a8a03784e56e5931b4cdb3946494f8d15c72bd2.tar.bz2
Use descriptors.
Diffstat (limited to 'Lib/test/test_userdict.py')
-rw-r--r--Lib/test/test_userdict.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_userdict.py b/Lib/test/test_userdict.py
index cc5b0ed..2d5fa03 100644
--- a/Lib/test/test_userdict.py
+++ b/Lib/test/test_userdict.py
@@ -191,12 +191,12 @@ class SeqDict(UserDict.DictMixin):
for key, value in self.iteritems():
d[key] = value
return d
+ @classmethod
def fromkeys(cls, keys, value=None):
d = cls()
for key in keys:
d[key] = value
return d
- fromkeys = classmethod(fromkeys)
class UserDictMixinTest(mapping_tests.TestMappingProtocol):
type2test = SeqDict