Did I find the right examples for you? yes no

All Samples(7)  |  Call(6)  |  Derive(0)  |  Import(1)

        def write(config, file):
	
	conf = json.dumps(config, indent = 4, sort_keys = True)
	
	with open(file, 'w') as w:
	
		w.write(conf)
        


src/m/a/makeswordclouds-HEAD/common/run.py   makeswordclouds(Download)
	if not os.path.isfile(config_name) or not os.path.isfile(replied_name):
 
		config.write(current, config_name)
		config.write(replied_current, replied_name)
		print('> Created config.json & replied.json. Please edit the values in the config before continuing.')
		replied_current['replied'] = list(self.replied)
 
		config.write(replied_current, self.replied_file)
 
	def add_banned_subreddit(self, subreddit):
			current['banned'] = list(self.banned)
 
			config.write(current, self.config_file)
 
if __name__ == '__main__':

src/q/w/qweechat-HEAD/qweechat/qweechat.py   qweechat(Download)
        if self.debug_dialog:
            self.debug_dialog.close()
        config.write(self.config)
        QTGUI.QMainWindow.closeEvent(self, event)
 

src/m/2/m209-0.1.0/m209/keylist/tests/test_config.py   m209(Download)
 
from ..key_list import KeyList
from ..config import read_key_list, write
 
 
 
        with file_remover(path):
            write(path, [key_list1])
            key_list2 = read_key_list(path, key_list1.indicator)