21223: Add a few more --file-cache RLIMIT_NOFILE tests
[arvados.git] / sdk / python / arvados / collection.py
index d03790411aaa1fc5205128bc868f925410bf92cd..9e6bd06071b5653a560da72a0f666217d7c0102c 100644 (file)
@@ -694,7 +694,7 @@ class RichCollectionBase(CollectionBase):
 
         Arguments:
 
-        * source: str | arvados.arvilfe.ArvadosFile |
+        * source: str | arvados.arvfile.ArvadosFile |
           arvados.collection.Subcollection --- The file or subcollection to
           add to this collection. If `source` is a str, the object will be
           found by looking up this path from `source_collection` (see
@@ -2059,12 +2059,12 @@ class CollectionWriter(CollectionBase):
 
         You may only have one file object from the Collection open at a time,
         so be sure to close the object when you're done.  Using the object in
-        a with statement makes that easy::
+        a with statement makes that easy:
 
-          with cwriter.open('./doc/page1.txt') as outfile:
-              outfile.write(page1_data)
-          with cwriter.open('./doc/page2.txt') as outfile:
-              outfile.write(page2_data)
+            with cwriter.open('./doc/page1.txt') as outfile:
+                outfile.write(page1_data)
+            with cwriter.open('./doc/page2.txt') as outfile:
+                outfile.write(page2_data)
         """
         if filename is None:
             streampath, filename = split(streampath)