#NEWLINE# @ property #NEWLINE# def ri( self ) : #NEWLINE# #INDENT# 'Read terminal status line: Ring Indicator' #NEWLINE# if ( not s . is_open ) : #NEWLINE# #INDENT# raise portNotOpenError #NEWLINE# #UNINDENT# s = fcntl . ioctl ( self . fd , TIOCMGET , TIOCM_zero_str ) #NEWLINE# return ( ( struct . unpack ( 'I' , s ) [ 0 ] & TIOCM_RI ) != 0 )