Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Make mock_open support "for line in fh" iteration #343
Conversation
|
This needs to be done in CPython and backported here - please open a ticket on bugs.python.org. Thanks. |
rbtcollins
closed this
Mar 20, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
johnsca commentedMar 17, 2016
File handles support direct iteration, but the result from
mock_opencurrently just returns an empty iterator.