The ternary syntax is not compatible with python 2.4 unfortunately.