[elbe-devel] [PATCH v3 00/75] tree-wide: use f-strings

Holger Dengler holger at hdengler.de
Mon Nov 7 08:50:50 CET 2022


On 06/11/2022 22:11, Daniel Braunwarth wrote:
> This series of patches replaces all "old-school" string formatting by
> f-strings.

f-stings are supported since python 3.6. I seem to remember from earlies discussions, that the f-strings are not used so far, because they are not available in older debian version, which are however supported by Elbe. I may be wrong, but I would propose to test also the creation of an oldstable or oldoldstable system with the series.

> This "fixes" all (668) pylint messages "consider-using-f-string / C0209".
> 
> See https://pylint.pycqa.org/en/latest/user_guide/messages/convention/consider-using-f-string.html
> 
> This improves pylint's rating from 8.73 to 9.28 out of 10.

These are just numbers. Pylint doesn't care about backward compatibility.

> 
> Changes since v1:
> - Only resend because of mailing list restrictions
> 
> Changes since v2:
> - Add missing "f" to strings (debinstaller, elbeproject, hashes and rfs)
> 

-- 
Gruß,
Holger Dengler
--
holger at hdengler.de


More information about the elbe-devel mailing list