Pylons/pyramid — pull request #444 by mgedmin (2012-02-21 19:51:30+00:00)
Title: Fix favicon_view example: open the file in binary mode.

Without this fix Python 3 users might get Unicode errors, and Windows
users might get data corruption.

The app_iter one line down is not right either: it splits binary image data into chunks terminated by newlines. I'm not fixing it right now, given yesterday's IRC conversation where mcdonc objected to `body=icon.read()` on people-will-copy-paste-it-without-understanding principles.