mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-30 09:48:56 +00:00
my_private_dir.cap: add newline for readability, open with mode 'w' not 'w+' since we don't need to read from this filehandle
This commit is contained in:
parent
8b9f86fb17
commit
a592551ccf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user