diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-04-30 04:01:59 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-04-30 04:01:59 +0200 |
commit | 7efe52c6d2969ac9f6146ebaf5b0a74431c138c0 (patch) | |
tree | 7b90c6c95ea913b2c49f87ad4b0b82609d34b3d5 /psutil/_pssunos.py | |
parent | a209a2630c3033c8b5334a3aafad3c0af341f1bf (diff) | |
download | psutil-7efe52c6d2969ac9f6146ebaf5b0a74431c138c0.tar.gz |
implement oneshot() ctx manager
Diffstat (limited to 'psutil/_pssunos.py')
-rw-r--r-- | psutil/_pssunos.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/psutil/_pssunos.py b/psutil/_pssunos.py index bca54527..3c75c6f2 100644 --- a/psutil/_pssunos.py +++ b/psutil/_pssunos.py @@ -297,6 +297,12 @@ class Process(object): self._ppid = None self._procfs_path = get_procfs_path() + def oneshot_enter(self): + pass + + def oneshot_exit(self): + pass + @wrap_exceptions def name(self): # note: max len == 15 |