Mercurial > hg > WSGraph
view wsgraph/utils.py @ 10:81d68388ec97
some nonsense about how this model is full of holes and how it should be better
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 10 Dec 2012 17:14:49 -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