diff options
author | Micah Lee <micah@micahflee.com> | 2020-09-03 11:28:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 11:28:57 -0700 |
commit | cd61e92f216719cbc6775121f47c85a3bc658941 (patch) | |
tree | 6060aba72350a3234f00f7951dfec93dfa42b7fc | |
parent | 04c8592765adc0cfdf8f4d791fb82b7eab892845 (diff) | |
parent | 3206830a1fd2f81bc2333d1a524314d2844d4f23 (diff) | |
download | onionshare-cd61e92f216719cbc6775121f47c85a3bc658941.tar.gz onionshare-cd61e92f216719cbc6775121f47c85a3bc658941.zip |
Merge pull request #1175 from 0verk1ll/patch-1
Change `== None` to `is None`
-rw-r--r-- | onionshare/onion.py | 4 |
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", |