mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-01 13:25:46 -04:00
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:
parent
9da5523da4
commit
8d62f506ee
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ json_file = os.getenv("JSON")
|
||||||
if version is None:
|
if version is None:
|
||||||
sys.stderr.write("Version is not specified for release\n")
|
sys.stderr.write("Version is not specified for release\n")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if version[0] is "v":
|
if version.startswith("v"):
|
||||||
# Strip the leading "v" from versioning
|
# Strip the leading "v" from versioning
|
||||||
version = version[1:]
|
version = version[1:]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue