def setInstanceState(inst, unjellier, jellyList):
    """
    Utility method to default to 'normal' state rules in unserialization.
    """
    state = unjellier.unjelly(jellyList[1])
    if hasattr(inst, "__setstate__"):
        inst.__setstate__(state)
    else:
        inst.__dict__ = state
    return inst

    Utility method to default to 'normal' state rules in unserialization.
    
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/jelly.py