Change == None to is None

According to LGTM, this change will improve code efficiency. https://lgtm.com/rules/7900090/
This commit is contained in:
overkill 2020-08-29 14:49:10 +00:00 committed by GitHub
parent 04c8592765
commit 3206830a1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",