From 332fa12b24ac316213c0b7db89045b0dbd99349c Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Mon, 1 Jul 2024 11:00:11 +0200 Subject: [PATCH] Fix formatting when using Python < 3.10 --- yubikit/management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yubikit/management.py b/yubikit/management.py index 28e14889..c9ec4cb1 100644 --- a/yubikit/management.py +++ b/yubikit/management.py @@ -105,7 +105,7 @@ def _from_aid(cls, aid: AID) -> "CAPABILITY": def display_name(self) -> str: if self == 0: return "None" - if f"{self:b}".count("1") > 1: + if bin(self).count("1") > 1: i = 1 names = [] while i < self: