File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ class UnrecurrentedMixin(object):
431431 '''Mixin for a permutation in a space that's been unrecurrented.'''
432432 def __getitem__ (self , i ):
433433 return super (UnrecurrentedMixin , self ).__getitem__ (i )[1 ]
434- def __iter__ (self , i ):
434+ def __iter__ (self ):
435435 return iter (tuple (zip (* super (UnrecurrentedMixin , self ).__iter__ ()))[1 ])
436436 index = lambda self , item : self .nominal_perm_space .domain [
437437 next (j for j , pair in enumerate (self ._perm_sequence )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class EnumType(enum.EnumMeta):
1111 '''Metaclass for our kickass enum type.'''
1212 def __dir__ (cls ):
1313 # working around Python bug 22506 that would be fixed in Python 3.5.
14- return type .__dir__ (cls ) + cls ._member_names_
14+ return object .__dir__ (cls ) + cls ._member_names_
1515
1616 __getitem__ = lambda self , i : self ._values_tuple [i ]
1717 # This `__getitem__` is important, so we could feed enum types straight
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ class _NO_ARGUMENT_TYPE(type):
2626 __repr__ = lambda cls : '<%s>' % cls .__name__
2727
2828
29- class NO_ARGUMENT (metaclass = _NO_ARGUMENT_TYPE ): pass
29+ class NO_ARGUMENT (object ):
30+ __metaclass__ = _NO_ARGUMENT_TYPE
3031
3132
3233
Original file line number Diff line number Diff line change 2424infinity = float ('inf' )
2525infinities = (infinity , - infinity )
2626
27- class BaseBagTestCase (cute_testing .TestCase , metaclass = abc .ABCMeta ):
27+ class BaseBagTestCase (cute_testing .TestCase ):
28+ __metaclass__ = abc .ABCMeta
2829 __test__ = False
2930 def test_common (self ):
3031 bag = self .bag_type ('abracadabra' )
You can’t perform that action at this time.
0 commit comments