saltstack/salt — pull request #3005 by SEJeff (2012-12-22 05:40:09+00:00)
Title: RFC: Consistently detect windows

I saw a few places where windows was detected in different ways and it irked me, so I cooked this up to unify it across all of the various bits. Since ``salt.utils.is_windows()`` is memoized, sys.platform() is only executed once and should be cached.

I'm not 100% sure that this is the right or blessed way to do things, but it might be a good idea. In the process of doing this, I noticed that @whiteinge broke the magical logging of required module dependencies and I added a TODO about it. We should figure out the "blessed" way of doing it and unify everything so it works.