svg/charts/util.py
def flatten_mapping(mapping):
	"""
	For every key that has an __iter__ method, assign the values
	to a key for each.

	>>> flatten_mapping({'ab': 3, ('c','d'): 4}) == {'ab': 3, 'c': 4, 'd': 4}
	True
	"""
	return {
		key: value
		for keys, value in mapping.items()
		for key in always_iterable(keys)
	}
def flatten_mapping(mapping):
	"""
	For every key that has an __iter__ method, assign the values
	to a key for each.

	>>> flatten_mapping({'ab': 3, ('c','d'): 4}) == {'ab': 3, 'c': 4, 'd': 4}
	True
	"""
	return {
		key: value
		for keys, value in mapping.items()
		for key in always_iterable(keys)
	}
def flatten_mapping ( mapping ) : return { key : value for keys , value in mapping . items ( ) for key in always_iterable ( keys ) }
For every key that has an __iter__ method, assign the values
	to a key for each.

	>>> flatten_mapping({'ab': 3, ('c','d'): 4}) == {'ab': 3, 'c': 4, 'd': 4}
	True
For every key that has an __iter__ method assign the values to a key for each .