#NEWLINE# def is_active( self , view_or_path ) : #NEWLINE# #INDENT# assert ( isinstance ( view_or_path , sublime . View ) or isinstance ( view_or_path , str ) ) , 'bad parameter' #NEWLINE# try : #NEWLINE# #INDENT# return is_active ( view_or_path ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# return is_active_path ( view_or_path )