#NEWLINE# def classify_tx_spec( self , tx_spec ) : #NEWLINE# #INDENT# 'For a transaction <tx_spec>, returns a string that represents\n        the type of transaction (basic, operational, composed, signed)\n        that it is.\n        ' #NEWLINE# if isinstance ( tx_spec , BasicTxSpec ) : #NEWLINE# #INDENT# return 'basic' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( tx_spec , OperationalTxSpec ) : #NEWLINE# #INDENT# return 'operational' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( tx_spec , ComposedTxSpec ) : #NEWLINE# #INDENT# return 'composed' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( tx_spec , RawTxSpec ) : #NEWLINE# #INDENT# return 'signed' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None