Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/site-packages/psutil
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
psutil
/
📁
..
📄
__init__.py
(48.15 KB)
📄
__init__.pyc
(46.63 KB)
📄
__init__.pyo
(46.95 KB)
📄
_common.py
(5.82 KB)
📄
_common.pyc
(7.29 KB)
📄
_common.pyo
(7.32 KB)
📄
_compat.py
(9.38 KB)
📄
_compat.pyc
(9.92 KB)
📄
_compat.pyo
(10.01 KB)
📄
_error.py
(1.98 KB)
📄
_error.pyc
(3.13 KB)
📄
_error.pyo
(3.14 KB)
📄
_psbsd.py
(11.67 KB)
📄
_psbsd.pyc
(14.1 KB)
📄
_psbsd.pyo
(14.1 KB)
📄
_pslinux.py
(37.88 KB)
📄
_pslinux.pyc
(32.33 KB)
📄
_pslinux.pyo
(32.66 KB)
📄
_psmswindows.py
(15.75 KB)
📄
_psmswindows.pyc
(17.75 KB)
📄
_psmswindows.pyo
(17.75 KB)
📄
_psosx.py
(9.86 KB)
📄
_psosx.pyc
(12.8 KB)
📄
_psosx.pyo
(12.8 KB)
📄
_psposix.py
(3.76 KB)
📄
_psposix.pyc
(3.77 KB)
📄
_psposix.pyo
(3.76 KB)
📄
error.py
(611 B)
📄
error.pyc
(633 B)
📄
error.pyo
(633 B)
Editing: _error.py
# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """psutil exception classes. Not supposed to be used / imported directly. Instead use psutil.NoSuchProcess, etc. """ class Error(Exception): """Base exception class. All other psutil exceptions inherit from this one. """ class NoSuchProcess(Error): """Exception raised when a process with a certain PID doesn't or no longer exists (zombie). """ def __init__(self, pid, name=None, msg=None): self.pid = pid self.name = name self.msg = msg if msg is None: if name: details = "(pid=%s, name=%s)" % (self.pid, repr(self.name)) else: details = "(pid=%s)" % self.pid self.msg = "process no longer exists " + details def __str__(self): return self.msg class AccessDenied(Error): """Exception raised when permission to perform an action is denied.""" def __init__(self, pid=None, name=None, msg=None): self.pid = pid self.name = name self.msg = msg if msg is None: if (pid is not None) and (name is not None): self.msg = "(pid=%s, name=%s)" % (pid, repr(name)) elif (pid is not None): self.msg = "(pid=%s)" % self.pid else: self.msg = "" def __str__(self): return self.msg class TimeoutExpired(Error): """Raised on Process.wait(timeout) if timeout expires and process is still alive. """ def __init__(self, pid=None, name=None): self.pid = pid self.name = name if (pid is not None) and (name is not None): self.msg = "(pid=%s, name=%s)" % (pid, repr(name)) elif (pid is not None): self.msg = "(pid=%s)" % self.pid else: self.msg = "" def __str__(self): return self.msg
Upload File
Create Folder