#NEWLINE# def get_token_id( self ) : #NEWLINE# #INDENT# self . set_state ( TDS_READING ) #NEWLINE# try : #NEWLINE# #INDENT# marker = self . _reader . get_byte ( ) #NEWLINE# #UNINDENT# except TimeoutError : #NEWLINE# #INDENT# self . set_state ( TDS_PENDING ) #NEWLINE# raise #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# self . _tds . close ( ) #NEWLINE# raise #NEWLINE# #UNINDENT# return self