hwt/hdl/statements.py
def statementsAreSame(statements: List[HdlStatement]) -> bool:
    """
    :return: True if all statements are same
    """
    iterator = iter(statements)
    try:
        first = next(iterator)
    except StopIteration:
        return True

    return all(first.isSame(rest) for rest in iterator)
def statementsAreSame(statements: List[HdlStatement]) -> bool:
    """
    :return: True if all statements are same
    """
    iterator = iter(statements)
    try:
        first = next(iterator)
    except StopIteration:
        return True

    return all(first.isSame(rest) for rest in iterator)
def statementsAreSame ( statements : List [ HdlStatement ] ) -> bool : iterator = iter ( statements ) try : first = next ( iterator ) except StopIteration : return True return all ( first . isSame ( rest ) for rest in iterator )
:return: True if all statements are same
: return : True if all statements are same