aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2017-01-27 18:20:14 +0200
committerFilipp Lepalaan <filipp@mac.com>2017-01-27 18:20:14 +0200
commita90cd1f76fef52794d6815c17889f2578e7f86ce (patch)
tree3080281bea09c235f71c8d516452f05edbd43129
parenta16194284278bcd3c1598d143eb59f0cf5743f73 (diff)
downloaddjango-wkhtmltopdf-a90cd1f76fef52794d6815c17889f2578e7f86ce.tar.gz
django-wkhtmltopdf-a90cd1f76fef52794d6815c17889f2578e7f86ce.tar.bz2
django-wkhtmltopdf-a90cd1f76fef52794d6815c17889f2578e7f86ce.zip
Don't mess with stderr
-rw-r--r--wkhtmltopdf/utils.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/wkhtmltopdf/utils.py b/wkhtmltopdf/utils.py
index 079d165..24058d7 100644
--- a/wkhtmltopdf/utils.py
+++ b/wkhtmltopdf/utils.py
@@ -99,13 +99,6 @@ def wkhtmltopdf(pages, output=None, **kwargs):
list(pages),
[output]))
ck_kwargs = {'env': env}
- # Handling of fileno() attr. based on https://github.com/GrahamDumpleton/mod_wsgi/issues/85
- try:
- i = sys.stderr.fileno()
- ck_kwargs['stderr'] = sys.stderr
- except (AttributeError, IOError):
- # can't call fileno() on mod_wsgi stderr object
- pass
return check_output(ck_args, **ck_kwargs)