Skip to content

Commit b8e6ccc

Browse files
authored
Merge pull request #6 from pre-commit-ci/asottile-patch-1
use .hex() instead of `{:02x}`
2 parents 1d450e5 + 638da2b commit b8e6ccc

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)