From a90cd1f76fef52794d6815c17889f2578e7f86ce Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 27 Jan 2017 18:20:14 +0200 Subject: Don't mess with stderr --- wkhtmltopdf/utils.py | 7 ------- 1 file changed, 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) -- cgit v1.2.3