Mercurial > hg > WSGraph
view wsgraph/utils.py @ 37:f17a6577cc0d
make default type configurable
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 15 Dec 2012 23:22:19 -0800 |
parents | f1f7a505e0d0 |
children |
line wrap: on
line source
""" utility functions that should be in core python """ def isiterable(instance): try: iter(instance) return True except TypeError: return False