Éric Araujo <mer...@netwok.org> added the comment:

I’ll make one change before committing:

Lib/test/test_shutil.py:69: if isinstance(path, (list, tuple)):
Using a list for path components does not make sense.  I have changed a similar 
helper function in packaging to allow only tuples.

Petri: these helper functions are all about convenienve.  I would reject a 
patch for a function just doing open+read, but here I think that doing 
os.path.join+open+read is worth a function.  We use such helpers all the time 
in packaging tests and it helps reducing boilerplate, without being very hard 
to understand.

----------
assignee:  -> eric.araujo
resolution:  -> accepted
versions: +Python 2.7, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12721>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to