mirror of
https://github.com/onionshare/onionshare.git
synced 2025-11-27 09:40:45 -05:00
Change == None to is None
According to LGTM, this change will improve code efficiency. https://lgtm.com/rules/7900090/
This commit is contained in:
parent
320f743c6e
commit
919fae5790
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue