Skip to content

Commit a073d32

Browse files
committed
adjusted comments in addAttachment
1 parent c5cb1fd commit a073d32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyral/restapi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,11 +1266,11 @@ def addAttachment(self, artifact, filename, mime_type='text/plain'):
12661266
"""
12671267
# determine if artifact exists, if not short-circuit False
12681268
# determine if attachment already exists for filename (with same size and content)
1269-
# if so, and already attached to artifact, short-circuit True
1270-
# if so, but not attached to artifact, save attachment
1269+
# if so, and already attached to artifact (or other entity), short-circuit True
1270+
# if so, but not attached to artifact (or other entity), save attachment
12711271
# if not, create the AttachmentContent with filename content,
12721272
# create the Attachment with basename for filename and ref the AttachmentContent
1273-
# and supply the ref for the artifact in the Artifact field for Attachment
1273+
# and supply the ref for the artifact (or other object) in the Artifact field for Attachment
12741274
#
12751275
if not os.path.exists(filename):
12761276
raise Exception('Named attachment filename: %s not found' % filename)

0 commit comments

Comments
 (0)