Skip to content

Commit 638da2b

Browse files
authored
use .hex() instead of {:02x}
1 parent 1d450e5 commit 638da2b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bin/main

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ class Object(NamedTuple):
107107
else:
108108
mode, _, path = pt1.decode().partition(' ')
109109
oid_bts, bts = bts[:20], bts[20:]
110-
oid = ''.join(f'{c:02x}' for c in oid_bts)
111110

112-
ret.append(Index(mode=mode, path=path, oid=oid))
111+
ret.append(Index(mode=mode, path=path, oid=oid_bts.hex()))
113112

114113
return ret
115114

0 commit comments

Comments
 (0)