def write(self, *args):
ConfigParser.write(self, *args)<EOL>if self.keyring_available:<EOL><INDENT>for key, thing in self._unsaved.items():<EOL><INDENT>action = thing[<NUM_LIT:0>]<EOL>value = thing[<NUM_LIT:1>]<EOL>if action == '<STR_LIT>':<EOL><INDENT>keyring.set_password(self.keyring_name, key, value)<EOL><DEDENT>elif action == '<STR_LIT>':<EOL><INDENT>try:<EOL><INDENT>keyring.delete_password(self.keyring_name, key)<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT><DEDENT>self._unsaved = {}<EOL>
See ConfigParser.write().  Also writes secure items to keystore.