From 6f0e48eac4f20894c802c93ac75cfa4693fbaa36 Mon Sep 17 00:00:00 2001 From: rakiru Date: Thu, 11 Jan 2018 19:19:58 +0000 Subject: 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). --- asciifarm/client/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asciifarm/client/main.py') 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 -- cgit