X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/85ec07b3d4f0a14285a0d20db682c282e490e7e7..3e197765c7cfefe556391661ee9a14abeab2dbb6:/sdk/python/arvados/collection.py diff --git a/sdk/python/arvados/collection.py b/sdk/python/arvados/collection.py index d03790411a..9e6bd06071 100644 --- a/sdk/python/arvados/collection.py +++ b/sdk/python/arvados/collection.py @@ -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)