Mercurial > hg
diff mercurial/tags.py @ 46467:45c3a263d5d1
engine: 'if not, else' -> 'if, else'
I personally feel that
```
if x:
pass
else:
pass
```
is easier to read and edit than
```
if not x:
pass
else:
pass
```
Next patches will add one more if-else clause.
Differential Revision: https://phab.mercurial-scm.org/D9931
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 31 Jan 2021 23:13:08 +0530 |
parents | 89a2afe31e82 |
children | 5aac1a1a5beb |