audreyr/binaryornot — pull request #4 by ncoghlan (2013-09-22 14:00:26+00:00)
Title: Read files in binary mode to simplify implementation

- adds null detection special case
- handles empty file edge case
- works entirely in binary mode
- avoids depending on six for Python 2/3 compatibility