saltstack/salt — pull request #3923 by s0undt3ch (2013-03-04 16:43:36+00:00)
Title: Don't `yield` on non generator functions. Fixes #3908.

Additionally, simplified match logic, replaced 3*`==` by `in`.