summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2020-09-03 11:28:57 -0700
committerGitHub <noreply@github.com>2020-09-03 11:28:57 -0700
commitcd61e92f216719cbc6775121f47c85a3bc658941 (patch)
tree6060aba72350a3234f00f7951dfec93dfa42b7fc
parent04c8592765adc0cfdf8f4d791fb82b7eab892845 (diff)
parent3206830a1fd2f81bc2333d1a524314d2844d4f23 (diff)
downloadonionshare-cd61e92f216719cbc6775121f47c85a3bc658941.tar.gz
onionshare-cd61e92f216719cbc6775121f47c85a3bc658941.zip
Merge pull request #1175 from 0verk1ll/patch-1
Change `== None` to `is None`
-rw-r--r--onionshare/onion.py4
1 files 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",