view wsgraph/utils.py @ 51:6a92eeace612

mod
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 06 May 2013 01:30:13 -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