@@ -41,7 +41,7 @@ class UnallowedVariationSelectionException(exceptions.CuteException):
4141 def __init__ (self , variation_clash ):
4242 self .variation_clash = variation_clash
4343 assert variation_clash in variation_clashes
44- super ().__init__ (
44+ super (UnallowedVariationSelectionException , self ).__init__ (
4545 "You can't create a `PermSpace` that's %s." % (
4646 ' and ' .join (
4747 '%s%s' % (
@@ -81,7 +81,9 @@ def __getitem__(self, i):
8181 return VariationSelection (SelectionSpace .__getitem__ (self , i ))
8282
8383 def index (self , variation_selection ):
84- return super ().index (variation_selection .variations )
84+ return super (VariationSelectionSpace , self ).index (
85+ variation_selection .variations
86+ )
8587
8688 @caching .cache ()
8789 def __repr__ (self ):
@@ -142,7 +144,7 @@ def _create_from_sorted_set(cls, variations):
142144 # This method exsits so we could cache canonically. The `__new__`
143145 # method canonicalizes the `variations` argument to a `SortedSet` and
144146 # we cache according to it.
145- variation_selection = super ().__new__ (cls )
147+ variation_selection = super (VariationSelection , cls ).__new__ (cls )
146148 variation_selection .__init__ (variations )
147149 return variation_selection
148150
0 commit comments