Hynek Schlawack h...@ox.cx added the comment:
ok. it would have saved some LOC for me, but it's nothing essential of course.
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12824
New submission from Hynek Schlawack h...@ox.cx:
test_shutil contains a handy helper function called write_file(filename.
contents). If *filename* is a tuple, os.path.join() is used to concatenate it
to a path.
To be really useful, the resulting file name should be returned, so the user
can
Éric Araujo mer...@netwok.org added the comment:
Hm, I don’t think the patch makes the test easier to read or maintain. As I
wrote in the commit message for #12721:
For simple open then read/write calls, I have left the usual idiom
(with open + read/write), as it is short and readable