]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
fileutil.write: accept mode=, and use it in Node.write_config
authorBrian Warner <warner@lothar.com>
Tue, 19 Mar 2013 00:30:57 +0000 (17:30 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 19 Mar 2013 00:34:57 +0000 (17:34 -0700)
commitff64a0fef5879d3651bc3db6ca0522d96b217d45
treecc9c28c47fed67ece85b1c85d288ef001e14f64c
parent7130a247cfba91da94721a205e87e4afaa287c8c
fileutil.write: accept mode=, and use it in Node.write_config

I want mode="w" (i.e. text, with newline conversion) for code that
writes newline-terminated strings (which should also be human readable)
to files. I like to use things like "cat .tahoe/permutation-seed"
without seeing the seed jammed together with the next command prompt.
src/allmydata/node.py
src/allmydata/util/fileutil.py