diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-18 20:30:43 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2020-07-18 20:39:48 +0200 |
commit | ea0c4cb644431594c11b0ecf9449791f5e65b165 (patch) | |
tree | e8b00291c645f95ca266c518ebd9b81200ae0757 /decoders/sdcard_sd | |
parent | 9e208e00f7b90c7ded552e84bcc5540be39f3e48 (diff) | |
download | libsigrokdecode-ea0c4cb644431594c11b0ecf9449791f5e65b165.tar.gz libsigrokdecode-ea0c4cb644431594c11b0ecf9449791f5e65b165.zip |
caliper: rephrase measurement annotation text construction
Unclutter the construction of the annotation text for measurements.
Prefer one code block over multiple scatterred lines. Only do string
formatting when an annotation gets emitted. Prefer .format() for its
better control over generated text. Fixup remaining Python idioms in
the unit conversion block while we are here.
Diffstat (limited to 'decoders/sdcard_sd')
0 files changed, 0 insertions, 0 deletions