daniel has uploaded this change for review.
tlv: Remove unused branch
0xff is checked in the first if statement and already raises a ValueError
Change-Id: Ia6a0656721a1fcaf5f16526fefe62c30b0ddb664
---
M src/osmocom/tlv.py
1 file changed, 0 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/python/pyosmocom refs/changes/55/42555/1
diff --git a/src/osmocom/tlv.py b/src/osmocom/tlv.py
index 14c22f0..ada7380 100644
--- a/src/osmocom/tlv.py
+++ b/src/osmocom/tlv.py
@@ -36,8 +36,6 @@
# three-byte tag
tag = binary[0] << 16 | binary[1] << 8 | binary[2]
return (tag, binary[3:])
- elif binary[0] == 0xff:
- return None, binary
else:
# single byte tag
tag = binary[0]
To view, visit change 42555. To unsubscribe, or for help writing mail filters, visit settings.