view wsgraph/utils.py @ 24:e46b4466abac

start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 12 Dec 2012 18:27:34 -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