Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit 9a37687

Browse files
committed
Make TLV a subclass of OrderedDict
Ordering is needed for get_cap_value in Python <3.6
1 parent 33e0345 commit 9a37687

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

emv/protocol/structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def parse_element(tag, value):
2121
return value
2222

2323

24-
class TLV(dict):
24+
class TLV(OrderedDict):
2525
""" BER-TLV
2626
A serialisation format.
2727

0 commit comments

Comments
 (0)