diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-05-16 23:09:44 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-05-17 00:11:19 -0400 |
commit | 0785454a26099631ae035be55cf8e9a5a49be2d0 (patch) | |
tree | ccfccf6b77301634da5121dd0c68d327833cb3d1 /paramiko/agent.py | |
parent | 6aa4f0f4fcf0acd1fb18bac3b14ad204c2a46362 (diff) | |
download | paramiko-0785454a26099631ae035be55cf8e9a5a49be2d0.tar.gz |
Migrate rest of existing agent tests to new module387-auth-mark-ii
Also make them better.
Also fix AttributeError raising to not be py3.10 specific
Diffstat (limited to 'paramiko/agent.py')
-rw-r--r-- | paramiko/agent.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/agent.py b/paramiko/agent.py index 8486d6ca..9d215b85 100644 --- a/paramiko/agent.py +++ b/paramiko/agent.py @@ -55,6 +55,7 @@ ALGORITHM_FLAG_MAP = { } +# TODO 4.0: rename all these - including making some of their methods public? class AgentSSH: def __init__(self): self._conn = None @@ -470,7 +471,7 @@ class AgentKey(PKey): Proxy any un-implemented methods/properties to the inner_key. """ if self.inner_key is None: # nothing to proxy to - raise AttributeError(name=name, obj=self) + raise AttributeError(name) return getattr(self.inner_key, name) @property |