Merge pull request #1175 from 0verk1ll/patch-1

Change `== None` to `is None`
This commit is contained in:
Micah Lee 2020-09-03 11:28:57 -07:00 committed by GitHub
commit cd61e92f21
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",