File tree 1 file changed +15
-17
lines changed
1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -252,8 +252,8 @@ def save(self):
252
252
{key : str (value ) for key , value in data .items ()}
253
253
)
254
254
resource = api_v2 .command
255
- resp = resource ._store [' session' ].post (
256
- resource ._store [' base_url' ] + '/' ,
255
+ resp = resource ._store [" session" ].post (
256
+ resource ._store [" base_url" ] + "/" ,
257
257
data = encoder ,
258
258
headers = {
259
259
'Content-Type' : encoder .content_type ,
@@ -365,22 +365,20 @@ def get_wrapped_command(self):
365
365
``escape_command=True`` in the init method this escapes a good majority
366
366
of those characters.
367
367
"""
368
- prefix = ''
368
+ prefix = ""
369
369
if self .bin_path :
370
370
bin_path = self ._escape_command (self .bin_path )
371
- prefix += f' PATH={ bin_path } :$PATH '
371
+ prefix += f" PATH={ bin_path } :$PATH "
372
372
373
373
command = (
374
374
' ' .join (
375
375
self ._escape_command (part ) if self .escape_command else part
376
376
for part in self .command
377
377
)
378
378
)
379
- return (
380
- "/bin/sh -c '{prefix}{cmd}'" .format (
381
- prefix = prefix ,
382
- cmd = command ,
383
- )
379
+ return "/bin/sh -c '{prefix}{cmd}'" .format (
380
+ prefix = prefix ,
381
+ cmd = command ,
384
382
)
385
383
386
384
def _escape_command (self , cmd ):
@@ -524,14 +522,14 @@ class BuildEnvironment(BaseEnvironment):
524
522
"""
525
523
526
524
def __init__ (
527
- self ,
528
- project = None ,
529
- version = None ,
530
- build = None ,
531
- config = None ,
532
- environment = None ,
533
- record = True ,
534
- ** kwargs ,
525
+ self ,
526
+ project = None ,
527
+ version = None ,
528
+ build = None ,
529
+ config = None ,
530
+ environment = None ,
531
+ record = True ,
532
+ ** kwargs ,
535
533
):
536
534
super ().__init__ (project , environment )
537
535
self .version = version
You can’t perform that action at this time.
0 commit comments