[issue22826] Support context management protocol in bkfile

Raymond Hettinger report at bugs.python.org
Sun Nov 9 18:29:29 CET 2014


Raymond Hettinger added the comment:

This looks correct and it improves readability.

One nit,  please put the doubled with on a single line instead of using the awkward line break (which looks weird with respect to the indentation of the with-block):

+    with open(config_c_in) as infp, bkfile.open(config_c, 'w') as outfp:

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22826>
_______________________________________


More information about the Python-bugs-list mailing list