aboutsummaryrefslogtreecommitdiff
path: root/onionshare
diff options
context:
space:
mode:
authoroverkill <22098433+0verk1ll@users.noreply.github.com>2020-08-29 14:49:10 +0000
committerGitHub <noreply@github.com>2020-08-29 14:49:10 +0000
commit3206830a1fd2f81bc2333d1a524314d2844d4f23 (patch)
tree6060aba72350a3234f00f7951dfec93dfa42b7fc /onionshare
parent04c8592765adc0cfdf8f4d791fb82b7eab892845 (diff)
downloadonionshare-3206830a1fd2f81bc2333d1a524314d2844d4f23.tar.gz
onionshare-3206830a1fd2f81bc2333d1a524314d2844d4f23.zip
Change `== None` to `is None`
According to LGTM, this change will improve code efficiency. https://lgtm.com/rules/7900090/
Diffstat (limited to 'onionshare')
-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",