From 646d00added46f9676171535f45de75f7ba52d86 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Thu, 30 Jan 2020 15:34:15 +0100 Subject: [PATCH] Removed unused imports. --- benedict/utils/dict_util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/benedict/utils/dict_util.py b/benedict/utils/dict_util.py index b6d55c9..6579c61 100644 --- a/benedict/utils/dict_util.py +++ b/benedict/utils/dict_util.py @@ -2,7 +2,6 @@ from benedict.utils import keylist_util, type_util -from six import string_types, text_type from slugify import slugify import copy @@ -95,7 +94,7 @@ def keypaths(d, separator='.'): kp = [] for key, value in parent.items(): keys = parent_keys + [key] - kp += [separator.join(text_type(k) for k in keys)] + kp += [separator.join('{}'.format(k) for k in keys)] if type_util.is_dict(value): kp += f(value, keys) return kp