Loading

Revision differences

Old revision #pswphv1ibNew revision #pjsb52s6w
  1    # new new 2  
  2        years = set()  
  3        for variant in self.model_variants:  
  4            years.add(variant.intro_date)  
  5            years.add(variant.end_date)  
  6        years = sorted(years)  
  7  
  8  
  9    # new new new  
  10        years = sorted(set((variant.intro_date, variant.end_date) for variant in self.model_variants))  
  11  
  12    # new new  
  13        years = set()  
  14        for variant in self.model_variants:  
  15            years.add((variant.intro_date, variant.end_date))  
  16        years = sorted(years)  
  17  
1    #new  18    #new  
2        years = set()  19        years = set()  
3        for dates in [(variant.intro_date, variant.end_date) for variant in self.model_variants]:  20        for dates in [(variant.intro_date, variant.end_date) for variant in self.model_variants]: