view wsgraph/utils.py @ 48:0485b2293988

ganv
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 30 Apr 2013 19:35:21 -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