Fixed fromkeys method.
This commit is contained in:
parent
2770ac6114
commit
7790dde841
|
@ -124,9 +124,8 @@ class KeypathDict(dict):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def fromkeys(cls, sequence, value=None):
|
def fromkeys(cls, sequence, value=None):
|
||||||
f = dict.fromkeys(sequence, value)
|
|
||||||
d = cls()
|
d = cls()
|
||||||
for key, value in f.items():
|
for key in sequence:
|
||||||
d[key] = value
|
d[key] = value
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue