Skip to content

Commit

Permalink
Added helper.is_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
pruiz authored and root committed May 17, 2015
1 parent 80d34b5 commit f335d99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ def md5hash(s):
def throw(s):
"""Raise an error. Mostly usefull within jinja templates"""
raise Exception(s)

def is_dict(o):
"""Test wether 'o' is a dict"""
return isinstance(o, dict)

0 comments on commit f335d99

Please sign in to comment.