File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,9 @@ def add_target(
293293 rate limiting access.
294294 """
295295 image_data = _get_image_data (image = image )
296- image_data_encoded = base64 .b64encode (image_data ).decode ("ascii" )
296+ image_data_encoded = base64 .b64encode (s = image_data ).decode (
297+ encoding = "ascii" ,
298+ )
297299
298300 data = {
299301 "name" : name ,
@@ -303,7 +305,7 @@ def add_target(
303305 "application_metadata" : application_metadata ,
304306 }
305307
306- content = bytes ( json .dumps (data ), encoding = "utf-8" )
308+ content = json .dumps (obj = data ). encode ( encoding = "utf-8" )
307309
308310 response = self ._make_request (
309311 method = HTTPMethod .POST ,
@@ -687,7 +689,7 @@ def update_target(
687689 if application_metadata is not None :
688690 data ["application_metadata" ] = application_metadata
689691
690- content = bytes ( json .dumps (data ), encoding = "utf-8" )
692+ content = json .dumps (obj = data ). encode ( encoding = "utf-8" )
691693
692694 self ._make_request (
693695 method = HTTPMethod .PUT ,
You can’t perform that action at this time.
0 commit comments