Re: [PATCH] Use f-strings in python scripts

2023-03-16 Thread Markus Armbruster
John Snow writes: [...] > Until then, docstrings should use triple-double quotes. Any other > string can use whatever quoting style happens to be most convenient > for the string being written to minimize escaping. Consistency is nice > where reasonable, but minimizing escapes by using

Re: [PATCH] Use f-strings in python scripts

2023-03-15 Thread John Snow
On Wed, Mar 15, 2023 at 8:13 AM Philippe Mathieu-Daudé wrote: > > On 15/3/23 12:16, Daniel P. Berrangé wrote: > > On Wed, Mar 15, 2023 at 08:43:33AM +0100, Philippe Mathieu-Daudé wrote: > >> Hi Marco, > >> > >> (+Python experts) > >> > >> On 13/3/23 18:25, Marco Liebel wrote: > >>> Replace python

Re: [PATCH] Use f-strings in python scripts

2023-03-15 Thread Philippe Mathieu-Daudé
On 15/3/23 12:16, Daniel P. Berrangé wrote: On Wed, Mar 15, 2023 at 08:43:33AM +0100, Philippe Mathieu-Daudé wrote: Hi Marco, (+Python experts) On 13/3/23 18:25, Marco Liebel wrote: Replace python 2 format string with f-strings Signed-off-by: Marco Liebel ---

Re: [PATCH] Use f-strings in python scripts

2023-03-15 Thread Daniel P . Berrangé
On Wed, Mar 15, 2023 at 08:43:33AM +0100, Philippe Mathieu-Daudé wrote: > Hi Marco, > > (+Python experts) > > On 13/3/23 18:25, Marco Liebel wrote: > > Replace python 2 format string with f-strings > > > > Signed-off-by: Marco Liebel > > --- > > target/hexagon/gen_helper_funcs.py | 54

Re: [PATCH] Use f-strings in python scripts

2023-03-15 Thread Philippe Mathieu-Daudé
Hi Marco, (+Python experts) On 13/3/23 18:25, Marco Liebel wrote: Replace python 2 format string with f-strings Signed-off-by: Marco Liebel --- target/hexagon/gen_helper_funcs.py | 54 ++-- target/hexagon/gen_helper_protos.py | 10 +- target/hexagon/gen_idef_parser_funcs.py |

RE: [PATCH] Use f-strings in python scripts

2023-03-14 Thread Marco Liebel
> -Original Message- > From: Taylor Simpson > Sent: Dienstag, 14. März 2023 18:54 > To: Marco Liebel (QUIC) ; qemu- > de...@nongnu.org > Subject: RE: [PATCH] Use f-strings in python scripts > > > > > -Original Message- > > From: Marco Li

RE: [PATCH] Use f-strings in python scripts

2023-03-14 Thread Taylor Simpson
> -Original Message- > From: Marco Liebel (QUIC) > Sent: Monday, March 13, 2023 11:26 AM > To: qemu-devel@nongnu.org > Cc: Taylor Simpson ; Marco Liebel (QUIC) > > Subject: [PATCH] Use f-strings in python scripts > > Replace python 2 format string with f-strings > > Signed-off-by: