#NEWLINE# def vacuum( db ) : #NEWLINE# #INDENT# if ( db == None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# isolation = db . isolation_level #NEWLINE# db . set_isolation_level ( 0 ) #NEWLINE# prepare ( db , 'vacuum;' , False ) #NEWLINE# prepare ( db , 'analyze;' , False ) #NEWLINE# db . set_isolation_level ( db )