Angus Lees 1168e8087e Purge use of "PRED and A or B" poor-mans-ternary
Since python2.6, python has a proper ternary construct "A if PRED else
B".  The older idiom "PRED and A or B" has a hidden trap - when A is
itself false, the result is (unexpectedly) B.

This change removes all cases of the older construct found using a
trivial git grep " and .* or " - except one case in oslo common
code (fixed in oslo upstream).

Change-Id: I24461f4328e188c8983ad574495e11e033ec5ba4
2014-11-08 00:17:12 +11:00
..
2014-06-21 15:07:31 +08:00
2014-08-12 11:17:21 +09:00
2014-06-21 15:07:31 +08:00
2014-06-21 15:07:31 +08:00
2014-06-21 15:07:31 +08:00
2014-10-24 15:18:49 +00:00