chore: back to work

This commit is contained in:
Henry Schreiner
2022-02-03 12:44:02 -05:00
parent 1d3b04e805
commit 36813cfa12
4 changed files with 15 additions and 6 deletions

View File

@@ -45,8 +45,11 @@ def build_expected_version_hex(matches):
if serial is None:
msg = 'Invalid PYBIND11_VERSION_PATCH: "{}"'.format(patch_level_serial)
raise RuntimeError(msg)
return "0x{:02x}{:02x}{:02x}{}{:x}".format(
major, minor, patch, level[:1].upper(), serial
return (
"0x"
+ "{:02x}{:02x}{:02x}{}{:x}".format(
major, minor, patch, level[:1], serial
).upper()
)