incuna/django-wkhtmltopdf — pull request #40 by gmcguire (2013-08-02 18:46:47+00:00)
Title: Test sys.stderr to ensure it hasn't been overridden

Ensure sys.stderr is a regular file before trying to capture its output. This should fix #15 and fix #16 running this under Apache+mod_wsgi.