aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LICENSE
diff options
context:
space:
mode:
authorWolfgang Müller2021-04-27 15:46:01 +0200
committerWolfgang Müller2021-04-28 20:15:53 +0200
commite64b6f8e5f6c1af57cf6c5dd9ad74cb934b57c44 (patch)
tree106cc89d77845895cd72320fcef0db04c7d8c6ba /LICENSE
parent83b091486668aac9fdf80eff1bd15ce0ac4273c4 (diff)
downloadquarg-e64b6f8e5f6c1af57cf6c5dd9ad74cb934b57c44.tar.gz
formatter: Use functools.partial to simplify the formatter
Instead of defining a function for every message format that trivially returns an f-string, have a generic partially-applied helper function that applies the Message object as a dictionary to the format() function. That way, we can inline the formatter definitions directly in the FORMATTERS dictionary.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions