]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
my_private_dir.cap: add newline for readability, open with mode 'w' not 'w+' since...
authorBrian Warner <warner@allmydata.com>
Tue, 18 Dec 2007 03:48:48 +0000 (20:48 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 18 Dec 2007 03:48:48 +0000 (20:48 -0700)
src/allmydata/client.py

index 41be23de87df8d51f0b7886be663637a211be916..2074772149504ba04f036148b8017beddadcef8c 100644 (file)
@@ -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)