view wsgraph/utils.py @ 49:dd7ea3d8e2cd

foo
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 01 May 2013 09:05:25 -0700
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