def _find_canonical_leaf(leaf, rel_im_leaf):
	canonical_leaf = leaf
	try:
		while 1:
			canonical_leaf = canonical_leaf.parent_leaf
	except AttributeError:
		pass
	if isinstance(canonical_leaf, FunctionType) \
	and ('va_kwa_wrapper', 'exc_wrapper') not in canonical_leaf.__name__:
		# In this case, the leaf has been decorated and thus need to be bound into
		# a proper instance method.
		canonical_leaf = new.instancemethod(canonical_leaf, rel_im_leaf.im_self, rel_im_leaf.im_class)
	return canonical_leaf
dataset/ETHPy150Open rsms/smisk/lib/smisk/mvc/routing.py/_find_canonical_leaf/swapped operands of `not in`