diff options
author | Joseph <powderflask@gmail.com> | 2015-07-28 18:36:08 -0700 |
---|---|---|
committer | Joseph <powderflask@gmail.com> | 2015-07-28 18:36:08 -0700 |
commit | 4b73d48254749bbf08c42126f10b16ac2d71f004 (patch) | |
tree | 8d501467f74913234516a01a5dc74c27e9beaa0a /wkhtmltopdf/views.py | |
parent | ed9881478d064e55679a2eb684c29baf1939776c (diff) | |
download | django-wkhtmltopdf-4b73d48254749bbf08c42126f10b16ac2d71f004.tar.gz django-wkhtmltopdf-4b73d48254749bbf08c42126f10b16ac2d71f004.tar.bz2 django-wkhtmltopdf-4b73d48254749bbf08c42126f10b16ac2d71f004.zip |
Patch python3 / mod_wsgi incompatibility on sys.stderrr.fileno() call
Root cause of this issue is in python3 / mod_wsgi. See: https://github.com/GrahamDumpleton/mod_wsgi/issues/85
This patch detects if there is something screwy with fileno() and simply skips setting stderr if there is to avoid the AttributeError that occurs otherwise. Pull https://github.com/incuna/django-wkhtmltopdf/pull/40 fixed this same issue when it arose for python 2.7, but the nature of the issue seems to have shifted, making it trickier to detect that the fileno() method cannot be called.
Diffstat (limited to 'wkhtmltopdf/views.py')
0 files changed, 0 insertions, 0 deletions