Skip to content

Commit

Permalink
Fix formatting when using older Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Jul 1, 2024
1 parent af39ea4 commit 9c4ef46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yubikit/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9c4ef46

Please sign in to comment.