From b18cba0818769b943bc903cf49a4d94d435cbb08 Mon Sep 17 00:00:00 2001 From: Aleksandar Yalnazov Date: Thu, 9 Oct 2014 09:27:28 +0300 Subject: [PATCH] A little more refactoring done. --- jsonobject/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jsonobject/utils.py b/jsonobject/utils.py index c824f3b..ee50ceb 100644 --- a/jsonobject/utils.py +++ b/jsonobject/utils.py @@ -2,7 +2,6 @@ from .exceptions import BadValueError - def check_type(obj, item_type, message): if obj is None: return item_type() @@ -24,5 +23,5 @@ def update(self, E=None, **F): self[key] = value def clear(self): - for key in list(self.keys()): + for key in list(self): del self[key]