← Back to team overview

curtin-dev team mailing list archive

Re: [Merge] ~dbungert/curtin:drop-fstring into curtin:master

 


Diff comments:

> diff --git a/curtin/commands/block_meta_v2.py b/curtin/commands/block_meta_v2.py
> index 3c6e1a5..9568519 100644
> --- a/curtin/commands/block_meta_v2.py
> +++ b/curtin/commands/block_meta_v2.py
> @@ -43,16 +43,16 @@ class PartTableEntry:
>      bootable: bool = False
>  
>      def render(self):
> -        r = f'{self.number}: '
> +        r = '{}: '.format(self.number)
>          for a in 'start', 'size', 'type', 'uuid':
>              v = getattr(self, a)
>              if v is not None:
> -                r += f' {a}={v}'
> +                r += ' {}={}'.format(a, v)
>          if self.name is not None:
> -            r += f' name="{self.name}"'
> +            r += ' name="{}"'.format(self.name)
>          if self.attrs:
>              v = ' '.join(self.attrs)
> -            r += f' attrs="{v}"'
> +            r += ' attrs="{}"'.format(self.attrs)

.format(v) ?

>          if self.bootable:
>              r += ' bootable'
>          return r


-- 
https://code.launchpad.net/~dbungert/curtin/+git/curtin/+merge/436268
Your team curtin developers is requested to review the proposed merge of ~dbungert/curtin:drop-fstring into curtin:master.



References