Skip to content
Snippets Groups Projects
Commit 9306a16c authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

debugcommands: prevent using `is False`

I was touching this code in a future patch and marmoute warned about usage of
`is False` here.

Quoting marmoute:

```
"is False" is going to check if the object you have the very same object in
memory than the one Python allocated for False (in practice 0)
This will "mostly work" on cpython because of implementation details, but
is semantically wrong and can start breaking unexpectedly
```

Differential Revision: https://phab.mercurial-scm.org/D10014
parent 75832107
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment