OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
keyring
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/17/2025 09:32:20 AM
rwxr-xr-x
📄
__init__.py
489 bytes
01/07/2018 08:43:04 PM
rw-r--r--
📄
__main__.py
70 bytes
01/07/2018 08:43:04 PM
rw-r--r--
📁
__pycache__
-
05/09/2024 06:58:02 AM
rwxr-xr-x
📄
backend.py
5.29 KB
01/07/2018 08:43:04 PM
rw-r--r--
📁
backends
-
05/09/2024 06:58:01 AM
rwxr-xr-x
📄
cli.py
3.56 KB
01/07/2018 08:43:04 PM
rw-r--r--
📄
core.py
3.9 KB
01/07/2018 08:43:04 PM
rw-r--r--
📄
credentials.py
1.33 KB
01/07/2018 08:43:04 PM
rw-r--r--
📄
devpi_client.py
199 bytes
01/07/2018 08:43:04 PM
rw-r--r--
📄
errors.py
1.25 KB
01/07/2018 08:43:04 PM
rw-r--r--
📄
getpassbackend.py
312 bytes
01/07/2018 08:43:04 PM
rw-r--r--
📄
http.py
1.23 KB
01/07/2018 08:43:04 PM
rw-r--r--
📄
py27compat.py
1.04 KB
01/07/2018 08:43:04 PM
rw-r--r--
📄
py33compat.py
660 bytes
01/07/2018 08:43:04 PM
rw-r--r--
📁
tests
-
05/09/2024 06:58:01 AM
rwxr-xr-x
📁
util
-
05/09/2024 06:58:01 AM
rwxr-xr-x
Editing: errors.py
Close
import sys class KeyringError(Exception): """Base class for exceptions in keyring """ class PasswordSetError(KeyringError): """Raised when the password can't be set. """ class PasswordDeleteError(KeyringError): """Raised when the password can't be deleted. """ class InitError(KeyringError): """Raised when the keyring could not be initialised """ class ExceptionRaisedContext(object): """ An exception-trapping context that indicates whether an exception was raised. """ def __init__(self, ExpectedException=Exception): self.ExpectedException = ExpectedException self.exc_info = None def __enter__(self): self.exc_info = object.__new__(ExceptionInfo) return self.exc_info def __exit__(self, *exc_info): self.exc_info.__init__(*exc_info) return self.exc_info.type and issubclass( self.exc_info.type, self.ExpectedException) class ExceptionInfo(object): def __init__(self, *info): if not info: info = sys.exc_info() self.type, self.value, self.traceback = info def __bool__(self): """ Return True if an exception occurred """ return bool(self.type) __nonzero__ = __bool__