#NEWLINE# def __delitem__( self , username ) : #NEWLINE# #INDENT# if ( self . db == None ) : #NEWLINE# #INDENT# raise AssertionError ( 'DB not open' ) #NEWLINE# #UNINDENT# self . lock . acquire ( ) #NEWLINE# try : #NEWLINE# #INDENT# del self . db [ username ] #NEWLINE# if self . filename : #NEWLINE# #INDENT# self . db . sync ( ) #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# self . lock . release ( )