Skip to content

Commit f247be0

Browse files
addressing PR comments
Signed-off-by: grantlouisherman <grantlouisherman041@gmail.com>
1 parent b525cb2 commit f247be0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
Offset was not being honored in asyncio because conditional was checking if offset was truthy or falsey. However, if offset is 0 then it is deemed falsey even though 0 is acceptable number to file.seek to. I changed the conditional to use instance of ints to validate if the program should file.seek or not
1+
:mod:`asyncio`: ``sendfile()`` and ``sock_sendfile()`` event loop methods
2+
now call ``file.seek(offset)`` if *file* has a `seek()` method,
3+
even if *offset* is `0` (default value)`.

0 commit comments

Comments
 (0)