def is_ready(shutit, shutit_module_obj):
	"""Returns true if this module is ready to be built.
	Caches the result (as it's assumed not to change during the build).
	"""
	cfg = shutit.cfg
	if cfg['environment'][cfg['build']['current_environment_id']]['modules_ready'] in shutit_module_obj.module_id:
		shutit.log('is_ready: returning True from cache',level=logging.DEBUG)
		return True
	ready = shutit_module_obj.check_ready(shutit)
	if ready:
		cfg['environment'][cfg['build']['current_environment_id']]['modules_ready'].append(shutit_module_obj.module_id)
		return True
	else:
		return False
dataset/ETHPy150Open ianmiell/shutit/shutit_main.py/is_ready/swapped operands of `in`