File: utils.pyx

package info (click to toggle)
soya 0.13.2-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,968 kB
  • ctags: 16,211
  • sloc: ansic: 93,691; python: 10,471; makefile: 15
file content (8 lines) | stat: -rw-r--r-- 278 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
# -*- indent-tabs-mode: t -*-
cdef _World _find_or_create_most_probable_ode_parent_from(_World world):
	while not (world._option & WORLD_HAS_ODE or world.parent is None):
		world = world.parent
	if not world._option & WORLD_HAS_ODE:
		world._activate_ode_world()
	return world