Switch to side-by-side view
--- a/Allura/allura/lib/utils.py +++ b/Allura/allura/lib/utils.py @@ -446,3 +446,10 @@ if ("text" in msg) or ("empty" in msg): return True return False + + +def take_while_true(source): + x = source() + while x: + yield x + x = source()