From ae332ec0f7d6b5df23b25fa88577eb5dd341c473 Mon Sep 17 00:00:00 2001 From: Jeff Tang Date: Mon, 15 Sep 2014 11:37:18 -0400 Subject: [PATCH] Cleaned up syntax --- psutil/_pswindows.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/psutil/_pswindows.py b/psutil/_pswindows.py index 223943511..b540bdac2 100644 --- a/psutil/_pswindows.py +++ b/psutil/_pswindows.py @@ -248,9 +248,7 @@ def exe(self): # see https://github.com/giampaolo/psutil/issues/414 # see https://github.com/giampaolo/psutil/issues/528 - if self.pid == 0: - raise AccessDenied(self.pid, self._name) - elif self.pid == 4: + if self.pid in (0, 4): raise AccessDenied(self.pid, self._name) return _convert_raw_path(cext.proc_exe(self.pid))