Skip to content

Commit 7271f9f

Browse files
committed
Formatting fix
1 parent 151e5ee commit 7271f9f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

emv/card.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,10 @@ def generate_cap_value(self, pin, challenge=None, value=None):
198198
if Tag.IPB in app_data:
199199
ipb = app_data[Tag.IPB]
200200
else:
201-
log.warn("Issuer Proprietary Bitmap not found on card - using static VISA IPB. "
202-
"The resulting code may not work!")
201+
log.warn(
202+
"Issuer Proprietary Bitmap not found on card - using static VISA IPB. "
203+
"The resulting code may not work!"
204+
)
203205
ipb = VISA_STATIC_IPB
204206

205207
return get_cap_value(resp, ipb, psn)

emv/protocol/test/test_structures.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ def test_dol():
9696
assert dol.size() == 29
9797

9898
# This DOL has a repeated 0x9A entry, for some reason. Apparently this is allowed.
99-
data = unformat_bytes("9F 66 04 9F 02 06 9F 03 06 9F 1A 02 95 05 5F 2A 02 9A 03 9C 01 9F 37 04 9A 03")
99+
data = unformat_bytes(
100+
"9F 66 04 9F 02 06 9F 03 06 9F 1A 02 95 05 5F 2A 02 9A 03 9C 01 9F 37 04 9A 03"
101+
)
100102
dol = DOL.unmarshal(data)
101103

102104
assert len([t for t in dol if t[0] == 0x9A]) == 2

0 commit comments

Comments
 (0)