Skip to content

Update to using f-strings instead of sting.format() #104

@bsimmo

Description

@bsimmo

Update to using f-strings instead of sting.format()

Is your Feature Request related to a problem? Please describe.
This is just a nice to have.
f-strings are the new Python3.6+ method and are apparently much faster* especially in later python3's and for me easier to read too.
try a search on are f-strings faster than .format

Describe the solution you'd like
Change all strings from .format to f-string

Describe alternatives you've considered
No alternative other than no rush as not vital, 1-wire is slow anyway, but every little helps.

Additional context
Something for a rainy day.
It's the way forward for Python3
It does mean a drop of Python3.5 support (support for 3.5 has been dropped by Python)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions