def make_esc(esc_chars):
	return lambda s: ''.join(['\\' + c if c in esc_chars else c for c in s])

# esc / unescape characters -- used for command line
Function generator for Escaping special characters
dataset/ETHPy150Open frappe/frappe/frappe/utils/__init__.py/make_esc