From 7790dde8416337ddbcb4f5e9d10c94fb7ff35a06 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Mon, 11 Nov 2019 15:51:58 +0100 Subject: [PATCH] Fixed fromkeys method. --- benedict/dicts/keypath.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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