Make sendfile more lenient for posix systems that don't have sendfile in the os module.
This should still achieve the same as the original line on platforms such as windows because windows will not have sendfile as an attribute of os.
Coverage decreased (-1.7%) to 84.884% when pulling 3caeea8920a65d57825e8c85393b12d412c48a20 on jkbbwr:sane-sendfile-check into eb2d81c69ccbe4ef361e6435a8a1cb2371fd3060 on Tinche:master.
Make
sendfile
more lenient for posix systems that don't havesendfile
in theos
module. This should still achieve the same as the original line on platforms such as windows because windows will not havesendfile
as an attribute ofos
.