jaraco/itertools.py
def _swap_on_miss(partition_result):
	"""
	Given a partition_dict result, if the partition missed, swap
	the before and after.
	"""
	before, item, after = partition_result
	return (before, item, after) if item else (after, item, before)
def _swap_on_miss(partition_result):
	"""
	Given a partition_dict result, if the partition missed, swap
	the before and after.
	"""
	before, item, after = partition_result
	return (before, item, after) if item else (after, item, before)
Given a partition_dict result, if the partition missed, swap
	the before and after.