diff options
author | Filipp Lepalaan <filipp@mac.com> | 2017-01-27 18:20:14 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2017-01-27 18:20:14 +0200 |
commit | a90cd1f76fef52794d6815c17889f2578e7f86ce (patch) | |
tree | 3080281bea09c235f71c8d516452f05edbd43129 /wkhtmltopdf | |
parent | a16194284278bcd3c1598d143eb59f0cf5743f73 (diff) | |
download | django-wkhtmltopdf-a90cd1f76fef52794d6815c17889f2578e7f86ce.tar.gz django-wkhtmltopdf-a90cd1f76fef52794d6815c17889f2578e7f86ce.tar.bz2 django-wkhtmltopdf-a90cd1f76fef52794d6815c17889f2578e7f86ce.zip |
Don't mess with stderr
Diffstat (limited to 'wkhtmltopdf')
-rw-r--r-- | wkhtmltopdf/utils.py | 7 |
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) |