#NEWLINE# def read( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# key_length = self . read_int ( ) #NEWLINE# #UNINDENT# except struct . error : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# key = self . _read ( ) #NEWLINE# assert ( self . file . read ( 1 ) == b'\t' ) #NEWLINE# val_length = self . read_int ( ) #NEWLINE# val = self . _read ( ) #NEWLINE# assert ( self . file . read ( 1 ) == b'\n' ) #NEWLINE# #UNINDENT# except ( StopIteration , struct . error ) : #NEWLINE# #INDENT# raise struct . error ( 'EOF before complete pair read' ) #NEWLINE# #UNINDENT# return ( val_length , val )