nes_gamepad: adjust Python style of decoder implementation
commit8f1dd70dd15916813186135bae71aa0683851da9
authorGerhard Sittig <gerhard.sittig@gmx.net>
Fri, 28 Jul 2023 06:08:38 +0000 (28 08:08 +0200)
committerGerhard Sittig <gerhard.sittig@gmx.net>
Sat, 29 Jul 2023 19:29:03 +0000 (29 21:29 +0200)
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