Skip to content

Commit

Permalink
A little more refactoring done.
Browse files Browse the repository at this point in the history
  • Loading branch information
yalnazov committed Oct 9, 2014
1 parent 62ed28e commit b18cba0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jsonobject/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from .exceptions import BadValueError



def check_type(obj, item_type, message):
if obj is None:
return item_type()
Expand All @@ -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]

0 comments on commit b18cba0

Please sign in to comment.