(self, podcasts, actions, groups)
Prepares to merge podcasts[1:] into podcasts[0]
Prepares to merge podcasts[1:] into podcasts[0]
Prepares to merge podcasts [ 1 : ] into podcasts [ 0 ]
def __init__(self, podcasts, actions, groups):
        """Prepares to merge podcasts[1:] into podcasts[0]"""

        for n, podcast1 in enumerate(podcasts):
            for m, podcast2 in enumerate(podcasts):
                if podcast1 == podcast2 and n != m:
                    raise IncorrectMergeException(
                        "can't merge podcast %s into itself %s"
                        % (podcast1.get_id(), podcast2.get_id())
                    )

        self.podcasts = podcasts
        self.actions = actions
        self.groups = groups
def __init__ ( self , podcasts , actions , groups ) : for n , podcast1 in enumerate ( podcasts ) : for m , podcast2 in enumerate ( podcasts ) : if podcast1 == podcast2 and n != m : raise IncorrectMergeException ( "can't merge podcast %s into itself %s" % ( podcast1 . get_id ( ) , podcast2 . get_id ( ) ) ) self . podcasts = podcasts self . actions = actions self . groups = groups