Skip to content

Commit 7ea5abd

Browse files
committed
Add polish
1 parent df25ee5 commit 7ea5abd

File tree

10 files changed

+17
-26
lines changed

10 files changed

+17
-26
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" Bitbucket Cloud common package """
1+
"""Bitbucket Cloud common package"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" Bitbucket Server common package """
1+
"""Bitbucket Server common package"""

atlassian/confluence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,9 +1493,9 @@ def download_attachments_from_page(self, page_id, path=None, start=0, limit=50,
14931493
raise PermissionError("Permission denied when trying to save files to '{path}'.".format(path=path))
14941494
except requests.HTTPError as http_err:
14951495
raise requests.HTTPError(
1496-
"HTTP error occurred while downloading attachments: {http_err}".format(http_err=http_err),
1496+
"HTTP error occurred while downloading attachments: {http_err}".format(http_err=http_err),
14971497
response=http_err.response,
1498-
request=http_err.request
1498+
request=http_err.request,
14991499
)
15001500
except Exception as err:
15011501
raise Exception("An unexpected error occurred: {error}".format(error=err))

atlassian/jira.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def download_issue_attachments(self, issue, path=None):
250250
:return: A message indicating the result of the download operation.
251251
"""
252252
return self.download_attachments_from_issue(issue=issue, path=path, cloud=self.cloud)
253-
253+
254254
@deprecated(version="3.41.20", reason="Use download_issue_attachments instead")
255255
def download_attachments_from_issue(self, issue, path=None, cloud=True):
256256
"""

examples/jira/jira_get_comment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
""" Example: Get Comments on a Jira Issue
2-
"""
1+
"""Example: Get Comments on a Jira Issue"""
32

43
# coding=utf-8
54
from atlassian import Jira

examples/jira/jira_issue_assign.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# coding=utf8
2-
"""
3-
Assign/Reassign a Jira Issue to a user with the account_id
4-
"""
2+
"""Assign/Reassign a Jira Issue to a user with the account_id"""
53

64
from atlassian import Jira
75

examples/jira/jira_issue_update_epic_link.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
Update the Epic Link for issue(s)
3-
"""
1+
"""Update the Epic Link for issue(s)"""
42

53
from atlassian.jira import Jira
64

examples/jira/jira_issues_csv_export.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# coding=utf-8
2-
"""
3-
jira issues export to CSV - all or current.
4-
default is ALL
5-
below example uses the current fields
2+
"""Jira issues export to CSV - all or current.
3+
default is ALL
4+
below example uses the current fields
65
"""
76

87
from atlassian import Jira

examples/jira/jira_issues_get_all_projects.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# coding=utf-8
2-
"""
3-
Getting Project Issue(s) example
4-
"""
2+
"""Getting Project Issue(s) example"""
53

64
from atlassian import Jira
75

examples/jira/jira_oauth2.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# coding=utf-8
2-
"""
3-
Example server with Flask demonstrating use of Jira OAuth 2.0.
4-
Server needs to be deployed. Example code is requesting access token from
5-
Jira. User has to grant access rights. After authorization the
6-
token and Using access token, Jira cloud ID is identified and
7-
the available projects are returned.
2+
"""Example server with Flask demonstrating use of Jira OAuth 2.0.
3+
Server needs to be deployed. Example code is requesting access token from
4+
Jira. User has to grant access rights. After authorization the
5+
token and Using access token, Jira cloud ID is identified and
6+
the available projects are returned.
87
"""
98

109
from requests_oauthlib import OAuth2Session

0 commit comments

Comments
 (0)