We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cf67df commit 856d624Copy full SHA for 856d624
docs/examples.rst
@@ -340,8 +340,8 @@ Here are some examples::
340
jira.add_attachment(issue=issue, attachment=f)
341
342
# attach file from memory (you can skip IO operations). In this case you MUST provide `filename`.
343
- import StringIO
344
- attachment = StringIO.StringIO()
+ from io import StringIO
+ attachment = StringIO()
345
attachment.write(data)
346
jira.add_attachment(issue=issue, attachment=attachment, filename='content.txt')
347
0 commit comments