mirror of
https://github.com/onionshare/onionshare.git
synced 2025-12-16 00:34:09 -05:00
Merge pull request #1175 from 0verk1ll/patch-1
Change `== None` to `is None`
This commit is contained in:
commit
cd61e92f21
1 changed files with 2 additions and 2 deletions
|
|
@ -715,7 +715,7 @@ class Onion(object):
|
||||||
if self.tor_proc:
|
if self.tor_proc:
|
||||||
self.tor_proc.terminate()
|
self.tor_proc.terminate()
|
||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
if self.tor_proc.poll() == None:
|
if self.tor_proc.poll() is None:
|
||||||
self.common.log(
|
self.common.log(
|
||||||
"Onion",
|
"Onion",
|
||||||
"cleanup",
|
"cleanup",
|
||||||
|
|
@ -724,7 +724,7 @@ class Onion(object):
|
||||||
try:
|
try:
|
||||||
self.tor_proc.kill()
|
self.tor_proc.kill()
|
||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
if self.tor_proc.poll() == None:
|
if self.tor_proc.poll() is None:
|
||||||
self.common.log(
|
self.common.log(
|
||||||
"Onion",
|
"Onion",
|
||||||
"cleanup",
|
"cleanup",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue