summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2016-09-24 13:20:16 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2016-09-24 13:20:16 +0200
commit8657abb6e0aecf0e7e76f6f757292ec5bd6e8205 (patch)
treee8b884617d4f32a20022aeb07e2aac77b186faac /decoders
parent6aa03e3aeb9054122e52016c3344927d5c0f02de (diff)
downloadlibsigrokdecode-8657abb6e0aecf0e7e76f6f757292ec5bd6e8205.tar.gz
libsigrokdecode-8657abb6e0aecf0e7e76f6f757292ec5bd6e8205.zip
usb_request: Use "is" or "is not" with None.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/usb_request/pd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/usb_request/pd.py b/decoders/usb_request/pd.py
index 39a9df6..bb7aedc 100644
--- a/decoders/usb_request/pd.py
+++ b/decoders/usb_request/pd.py
@@ -201,7 +201,7 @@ class Decoder(srd.Decoder):
self.handle_request(request_started, request_end)
# CONTROL, SETUP stage
- elif request['type'] == None and self.transaction_type == 'SETUP':
+ elif request['type'] is None and self.transaction_type == 'SETUP':
request['setup_data'] = self.transaction_data
request['wLength'] = struct.unpack('<H',
bytes(self.transaction_data[6:8]))[0]