summaryrefslogtreecommitdiff
path: root/decoders/mx25lxx05d
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-02-01 23:14:29 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-02-01 23:18:25 +0100
commit7f7ea759ebdc854beb0468b410f7d2382f291a4f (patch)
tree079e608f706706609d7fb95b81c485cc548a8396 /decoders/mx25lxx05d
parent156509ca42f0df2380c9f205f9aad337e1a07802 (diff)
downloadlibsigrokdecode-7f7ea759ebdc854beb0468b410f7d2382f291a4f.tar.gz
libsigrokdecode-7f7ea759ebdc854beb0468b410f7d2382f291a4f.zip
srd: Properly use append() for appending to lists.
This is not only the canonical way to do it, it's also quite a bit faster and less memory-intensive than using '+='.
Diffstat (limited to 'decoders/mx25lxx05d')
-rw-r--r--decoders/mx25lxx05d/mx25lxx05d.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/mx25lxx05d/mx25lxx05d.py b/decoders/mx25lxx05d/mx25lxx05d.py
index 801ab80..fa05205 100644
--- a/decoders/mx25lxx05d/mx25lxx05d.py
+++ b/decoders/mx25lxx05d/mx25lxx05d.py
@@ -210,7 +210,7 @@ class Decoder(srd.Decoder):
self.putx([0, ['%s ID' % d]])
elif self.cmdstate == 6:
# Byte 6: Slave sends device ID (or manufacturer ID).
- self.ids += [miso]
+ self.ids.append(miso)
d = 'Manufacturer' if self.manufacturer_id_first else 'Device'
self.putx([0, ['%s ID' % d]])
else: