@synchronized(CONFIG_LOCK)
def delete_from_database(section, keyword):
 global database, CFG, modified
 del database[section][keyword]
 if ((section == 'servers') and ('[' in keyword)):
  keyword = keyword.replace('[', '{').replace(']', '}')
 try:
  del CFG[section][keyword]
 except KeyError:
  pass
 modified = True

@ synchronized ( CONFIG_LOCK ) def delete_from_database ( section , keyword ) : global database , CFG , modified del database [ section ] [ keyword ] if ( ( section == 'servers' ) and ( '[' in keyword ) ) : keyword = keyword . replace ( '[' , '{' ) . replace ( ']' , '}' ) try : del CFG [ section ] [ keyword ] except KeyError : pass modified = True
remove section/keyword from ini database .