From: Brian Warner Date: Tue, 18 Dec 2007 03:48:48 +0000 (-0700) Subject: my_private_dir.cap: add newline for readability, open with mode 'w' not 'w+' since... X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/provisioning?a=commitdiff_plain;h=a592551ccf48240da4b4810bd0355fef811ef5e7;p=tahoe-lafs%2Ftahoe-lafs.git my_private_dir.cap: add newline for readability, open with mode 'w' not 'w+' since we don't need to read from this filehandle --- diff --git a/src/allmydata/client.py b/src/allmydata/client.py index 41be23de..20747721 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -135,7 +135,7 @@ class Client(node.Node, Referenceable, testutil.PollMixin): log.msg("created new private directory: %s" % (newdirnode,)) privdiruri = newdirnode.get_uri() self.private_directory_uri = privdiruri - open(privdirfile, "w+").write(privdiruri) + open(privdirfile, "w").write(privdiruri + "\n") self._private_uri_observers.fire(privdiruri) d.addCallback(_when_created) d.addErrback(self._private_uri_observers.fire)