From 919fae5790a4195b100aab044bf9ef0eca975c44 Mon Sep 17 00:00:00 2001 From: overkill <22098433+0verk1ll@users.noreply.github.com> Date: Sat, 29 Aug 2020 14:49:10 +0000 Subject: [PATCH] Change `== None` to `is None` According to LGTM, this change will improve code efficiency. https://lgtm.com/rules/7900090/ --- onionshare/onion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onionshare/onion.py b/onionshare/onion.py index faffdd52..d842390d 100644 --- a/onionshare/onion.py +++ b/onionshare/onion.py @@ -715,7 +715,7 @@ class Onion(object): if self.tor_proc: self.tor_proc.terminate() time.sleep(0.2) - if self.tor_proc.poll() == None: + if self.tor_proc.poll() is None: self.common.log( "Onion", "cleanup", @@ -724,7 +724,7 @@ class Onion(object): try: self.tor_proc.kill() time.sleep(0.2) - if self.tor_proc.poll() == None: + if self.tor_proc.poll() is None: self.common.log( "Onion", "cleanup",