]> sigrok.org Git - libsigrokdecode.git/commit
nes_gamepad: adjust Python style of decoder implementation
authorGerhard Sittig <redacted>
Fri, 28 Jul 2023 06:08:38 +0000 (08:08 +0200)
committerGerhard Sittig <redacted>
Sat, 29 Jul 2023 19:29:03 +0000 (21:29 +0200)
commit8f1dd70dd15916813186135bae71aa0683851da9
tree7402e2df0294167746f9d1122b16080a4ceb0e8d
parent782c35b0158a84bbdbcfd2fc2f0ed7e507f17650
nes_gamepad: adjust Python style of decoder implementation

Rephrase the NES gamepad decoder to become more idiomatic Python.
Address nits to better match the sigrok project's coding style.
Eliminate hidden coupling by means of instance variables.
decoders/nes_gamepad/pd.py