sebastien/cuisine — pull request #114 by gregbanks (2012-10-26 03:38:57+00:00)
Title: clean up mode switching and compression in file_write

file_write was defaulting to using sudo, which should definitely not be the case. part of the problem was that mode was returning True, False, and None and mode_* called with None would default to True for mode_sudo.

mode should now return True or False, file_write determines whether to use sudo correctly, switch to bzip2 since gzip.zlib does not write gzip headers, and make a few things compatible with OSX.