Markus Fuchs <firstname.lastname@example.org>
r862923 | djames | 2006-12-31 18:21:41 -0600 (Sun, 31 Dec 2006)
Update Python bindings to correctly treat "None" as an empty stream.
Add tests to verify this fix.
Found by: Markus Fuchs <email@example.com>
Shun-ichi GOTO <firstname.lastname@example.org>
[ In subversion/bindings/swig/python ]
(read_handler_pyio): If py_io is None, return a short read
to indicate an empty stream.
(write_handler_pyio): If py_io is None, ignore the input.
(test_dump_fs2): Update test to reflect that if you pass in
None as a stream, it will be treated as an empty stream.
(test_get_file): Add test for this function.