Fixed fromkeys method.

This commit is contained in:
Fabio Caccamo 2019-11-11 15:51:58 +01:00
parent 2770ac6114
commit 7790dde841
1 changed files with 1 additions and 2 deletions

View File

@ -124,9 +124,8 @@ class KeypathDict(dict):
@classmethod
def fromkeys(cls, sequence, value=None):
f = dict.fromkeys(sequence, value)
d = cls()
for key, value in f.items():
for key in sequence:
d[key] = value
return d