def _get_upstream_attribute(base, attr):
	if base in attr:
		return base[ attr ]
	for parent in base.__bases__:
		return _get_upstream_attribute(parent, attr)
dataset/ETHPy150Open PythonJS/PythonJS/pythonjs/runtime/pythonpythonjs.py/_get_upstream_attribute/swapped operands of `in`