@@ -790,9 +790,9 @@ def _trait_monitor_index ( cls, handler ):
790790 if type_handler is type ( _handler ):
791791 if (((type_handler is MethodType ) or
792792 'cython_function_or_method' in str (type_handler )) and \
793- (six . get_method_self ( handler ) is not None )):
793+ (handler . __self__ is not None )):
794794 if ((handler .__name__ == _handler .__name__ ) and
795- (six . get_method_self ( handler ) is six . get_method_self ( _handler ) )):
795+ (handler . __self__ is _handler . __self__ )):
796796 return i
797797
798798 elif handler == _handler :
@@ -957,7 +957,7 @@ def wrappern(*args):
957957 if arg is not None :
958958 function (arg , * args )
959959 # Return the correct wrapper depending on the arg count
960- args = six . get_function_code ( function ) .co_argcount - 1
960+ args = function . __code__ .co_argcount - 1
961961 if args == 0 :
962962 return wrapper0
963963 elif args == 1 :
@@ -1947,7 +1947,7 @@ def _trait_view ( cls, name, view_element, default_name, view_elements,
19471947 result = view_elements .find ( name )
19481948 if (result is None ) and (handler is not None ):
19491949 method = getattr ( handler , name , None )
1950- if six . callable ( method ):
1950+ if callable ( method ):
19511951 result = method ()
19521952
19531953 return result
@@ -1974,7 +1974,7 @@ def _trait_view ( cls, name, view_element, default_name, view_elements,
19741974
19751975 if handler is not None :
19761976 method = getattr ( handler , name , None )
1977- if six . callable ( method ):
1977+ if callable ( method ):
19781978 result = method ()
19791979 if isinstance ( result , ViewElement ):
19801980 return result
0 commit comments