summaryrefslogtreecommitdiff
path: root/decoders/miller
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-07-18 20:30:43 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-07-18 20:39:48 +0200
commitea0c4cb644431594c11b0ecf9449791f5e65b165 (patch)
treee8b00291c645f95ca266c518ebd9b81200ae0757 /decoders/miller
parent9e208e00f7b90c7ded552e84bcc5540be39f3e48 (diff)
downloadlibsigrokdecode-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/miller')
0 files changed, 0 insertions, 0 deletions