#NEWLINE# def __getitem__( self , key ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return super ( Resampler , self ) . __getitem__ ( key ) #NEWLINE# #UNINDENT# except ( KeyError , com . AbstractMethodError ) : #NEWLINE# #INDENT# if isinstance ( key . obj , com . ABCSeries ) : #NEWLINE# #INDENT# return self . _deprecated ( ) [ key ] #NEWLINE# #UNINDENT# raise