def open_file_write(fname):
	"""opens file for writing in required encoding"""
	CREATED_FILES.append(fname)
	return codecs.open(fname, 'w', OUT_FILE_ENCODING)
opens file for writing in required encoding
recipes/Python/576534_Dump_Oracle_db_schema_to_text/recipe-576534.py