Skip to content

Commit c294c48

Browse files
committed
format
1 parent 9b3d6b4 commit c294c48

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

atlassian/bitbucket/base.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, url, *args, **kwargs):
3232
url = url[0]
3333
self.timeformat_lambda = kwargs.pop("timeformat_lambda", self._default_timeformat_lambda)
3434
self._check_timeformat_lambda()
35-
super(BitbucketBase, self).__init__(url, *args, **kwargs)
35+
super().__init__(url, *args, **kwargs)
3636

3737
def __str__(self):
3838
return PrettyPrinter(indent=4).pformat(self.__data if self.__data else self)
@@ -74,8 +74,7 @@ def _get_paged(
7474
if "values" not in response:
7575
return
7676

77-
for value in response.get("values", []):
78-
yield value
77+
yield from response.get("values", [])
7978

8079
if self.cloud:
8180
url = response.get("next")
@@ -197,10 +196,10 @@ def _new_session_args(self):
197196
198197
:return: A dict with the kwargs for new objects
199198
"""
200-
return dict(
201-
session=self._session,
202-
cloud=self.cloud,
203-
api_root=self.api_root,
204-
api_version=self.api_version,
205-
timeformat_lambda=self.timeformat_lambda,
206-
)
199+
return {
200+
"session": self._session,
201+
"cloud": self.cloud,
202+
"api_root": self.api_root,
203+
"api_version": self.api_version,
204+
"timeformat_lambda": self.timeformat_lambda,
205+
}

0 commit comments

Comments
 (0)