node.py/interfaces.py: minor docs fixes
authorBrian Warner <warner@lothar.com>
Tue, 29 Dec 2009 23:04:09 +0000 (15:04 -0800)
committerBrian Warner <warner@lothar.com>
Tue, 29 Dec 2009 23:04:09 +0000 (15:04 -0800)
src/allmydata/interfaces.py
src/allmydata/node.py

index 501e3c1dcf10fe216fa8a9e40dae6477b92028ea..e8ff0b44106f896aef5dc336f5ff6c6e0b7a5e84 100644 (file)
@@ -2014,7 +2014,7 @@ class IClient(Interface):
 
     def create_mutable_file(contents=""):
         """Create a new mutable file (with initial) contents, get back the
-        URI string.
+        new node instance.
 
         @param contents: (bytestring, callable, or None): this provides the
         initial contents of the mutable file. If 'contents' is a bytestring,
@@ -2027,8 +2027,7 @@ class IClient(Interface):
         content_maker= is more efficient than creating a mutable file and
         setting its contents in two separate operations.
 
-        @return: a Deferred that fires with tne (string) SSK URI for the new
-                 file.
+        @return: a Deferred that fires with an IMutableFileNode instance.
         """
 
     def create_dirnode(initial_children={}):
index 790ed0433985272f2125e631b94a718923518519..b68ee2fc351dcf026360c1a5fb91dbf297bf26bb 100644 (file)
@@ -121,7 +121,7 @@ class Node(service.MultiService):
         cfg_tubport = self.get_config("node", "tub.port", "")
         if not cfg_tubport:
             # For 'tub.port', tahoe.cfg overrides the individual file on
-            # disk. So only read self._portnumfile is tahoe.cfg doesn't
+            # disk. So only read self._portnumfile if tahoe.cfg doesn't
             # provide a value.
             try:
                 file_tubport = open(self._portnumfile, "rU").read().strip()