File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -952,15 +952,15 @@ current_metadata = obj.metadata().items()
952952print (f " { current_metadata = } " )
953953```
954954
955- By way of explanation, please note that calls of the form
955+ By way of explanation, please note that calls of the form
956956`obj.metadata([opt1=value1[,opt2=value2... ]])` will always
957957produce new `iRODSMetaCollection` objects - which nevertheless share the same
958958session object as the original, as the copy is shallow in most respects.
959959This avoids always mutating the current instance and thus prevents any need to
960960implement context manager semantics when temporarily altering options such
961961as `reload ` and `admin` .
962962
963- Additionally note that the call `obj.metadata()` without option parameters
963+ Additionally note that the call `obj.metadata()` without option parameters
964964always syncs the AVU list within the resulting `iRODSMetaCollection` object to
965965what is currently in the catalog, because the original object is unmutated with
966966respect to all options (meaning `obj.metadata.reload` is always `True ` ) -- that
Original file line number Diff line number Diff line change @@ -875,4 +875,3 @@ def test_prevention_of_attribute_creation__issue_795(self):
875875 # let the tests find the parent irods lib
876876 sys .path .insert (0 , os .path .abspath ("../.." ))
877877 unittest .main ()
878-
You can’t perform that action at this time.
0 commit comments