makejson: Use .startswith, not is

More specifically, the use of `is` here appears to be a bug, since that
operator tests for operator identity. The correct operator to use is
`==`, but in this context using `.startswith()` better expresses what
we're actually checking.
This commit is contained in:
Simon Howard 2025-06-11 15:30:15 -04:00
parent 9da5523da4
commit 8d62f506ee

View file

@ -34,7 +34,7 @@ json_file = os.getenv("JSON")
if version is None:
sys.stderr.write("Version is not specified for release\n")
sys.exit(1)
if version[0] is "v":
if version.startswith("v"):
# Strip the leading "v" from versioning
version = version[1:]