def initialize_events(article_generator):
 del events[:]
 localized_events.clear()

def initialize_events ( article_generator ) : del events [ : ] localized_events . clear ( )
clears the events list before generating articles to properly support plugins with multiple generation passes like i18n_subsites .