@@ -32,7 +32,7 @@ def __init__(self, url, *args, **kwargs):
32
32
url = url [0 ]
33
33
self .timeformat_lambda = kwargs .pop ("timeformat_lambda" , self ._default_timeformat_lambda )
34
34
self ._check_timeformat_lambda ()
35
- super (BitbucketBase , self ).__init__ (url , * args , ** kwargs )
35
+ super ().__init__ (url , * args , ** kwargs )
36
36
37
37
def __str__ (self ):
38
38
return PrettyPrinter (indent = 4 ).pformat (self .__data if self .__data else self )
@@ -74,8 +74,7 @@ def _get_paged(
74
74
if "values" not in response :
75
75
return
76
76
77
- for value in response .get ("values" , []):
78
- yield value
77
+ yield from response .get ("values" , [])
79
78
80
79
if self .cloud :
81
80
url = response .get ("next" )
@@ -197,10 +196,10 @@ def _new_session_args(self):
197
196
198
197
:return: A dict with the kwargs for new objects
199
198
"""
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