Loading

Paste #pswphv1ib

  1.     #new
  2.         years = set()
  3.         for dates in [(variant.intro_date, variant.end_date) for variant in self.model_variants]:
  4.             years = years.union(dates)
  5.         years = sorted(years)
  6.  
  7.         # old
  8.         years = sorted(reduce(set.union, [(variant.intro_date, variant.end_date) for variant in self.model_variants], set()))

Comments