From 16d2031b149ff67be83b5600bdf5ad561add312d Mon Sep 17 00:00:00 2001 From: Ryan Jarvis Date: Sat, 19 Jan 2019 00:05:07 -0800 Subject: Rename values that shadow built-in keywords --- decoders/cec/protocoldata.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'decoders/cec/protocoldata.py') diff --git a/decoders/cec/protocoldata.py b/decoders/cec/protocoldata.py index 833ac7f..78c3b6f 100644 --- a/decoders/cec/protocoldata.py +++ b/decoders/cec/protocoldata.py @@ -101,15 +101,15 @@ opcodes = { 0x9A: 'SET_AUDIO_RATE', } -def resolve_logical_address(id, is_initiator): - if id < 0 or id > 0x0F: +def resolve_logical_address(id_, is_initiator): + if id_ < 0 or id_ > 0x0F: return 'Invalid' # Special handling of 0x0F. - if id == 0x0F: + if id_ == 0x0F: return 'Unregistered' if is_initiator else 'Broadcast' - return logical_adresses[id] + return logical_adresses[id_] def decode_header(header): src = (header & 0xF0) >> 4 -- cgit v1.2.3-70-g09d2