(gens)
Support for passing generators as `*gens` and `[gens]`.
Support for passing generators as `*gens` and `[gens]`.
Support for passing generators as * gens and [ gens ] .
def _analyze_gens(gens):
    """Support for passing generators as `*gens` and `[gens]`. """
    if len(gens) == 1 and hasattr(gens[0], '__iter__'):
        return tuple(gens[0])
    else:
        return tuple(gens)
def _analyze_gens ( gens ) : if len ( gens ) == 1 and hasattr ( gens [ 0 ] , '__iter__' ) : return tuple ( gens [ 0 ] ) else : return tuple ( gens )