Skip to content

Commit

Permalink
Cleaned up syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjefftang committed Sep 15, 2014
1 parent 37f56ff commit ae332ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions psutil/_pswindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit ae332ec

Please sign in to comment.