diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-12-22 18:37:29 +0100 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-12-22 18:58:43 +0100 |
commit | 279331bd318c853e3aaac746167eb81179771750 (patch) | |
tree | 06dfdbd8df1eb84c5c8c00c2cf5d052f299fceb3 /decoders/spi/pd.py | |
parent | 57ba804a912c0753aefcaf8eee2f19ad7f5e86e5 (diff) | |
download | libsigrokdecode-279331bd318c853e3aaac746167eb81179771750.tar.gz libsigrokdecode-279331bd318c853e3aaac746167eb81179771750.zip |
usb_power_delivery: fixup a Python style nit (dict lookup fallback)
Use the dictionary's .get() method in combination with a default result
parameter, instead of an explicit "k in dictvar" test and a conditional
assignment.
Diffstat (limited to 'decoders/spi/pd.py')
0 files changed, 0 insertions, 0 deletions