diff options
| author | rakiru <rabbitkillrun@googlemail.com> | 2018-01-11 19:19:58 +0000 |
|---|---|---|
| committer | rakiru <rabbitkillrun@googlemail.com> | 2018-01-11 19:19:58 +0000 |
| commit | 6f0e48eac4f20894c802c93ac75cfa4693fbaa36 (patch) | |
| tree | 9c32ae6716393d3aa7ccbb14a41494efe34d2399 /asciifarm/client/main.py | |
| parent | e0164e21209cec0ec24e9d25eee90711bca78947 (diff) | |
Replace None equality checks with identity checks
Both work, but the identity check is the more correct/idiomatic
approach (and also ever-so-slightly more efficient).
Diffstat (limited to 'asciifarm/client/main.py')
| -rwxr-xr-x | asciifarm/client/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asciifarm/client/main.py b/asciifarm/client/main.py index de77d09..48e89ad 100755 --- a/asciifarm/client/main.py +++ b/asciifarm/client/main.py @@ -57,7 +57,7 @@ def main(argv=None): keybindings = kf.read() address = args.address - if address == None: + if address is None: address = defaultAdresses[args.socket] if args.socket == "abstract": address = '\0' + address |
