diff --git a/benedict/dicts/keypath.py b/benedict/dicts/keypath.py index 2557b92..3210119 100644 --- a/benedict/dicts/keypath.py +++ b/benedict/dicts/keypath.py @@ -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