diff options
author | lovetox <philipp@hoerist.com> | 2022-01-30 17:15:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-30 11:15:40 -0500 |
commit | d259e1d5ae2d71c2c8d8a9ea6317dc1de785dbad (patch) | |
tree | a122d16716ccd5259268e268eef0a626128ae54e /src/OpenSSL/SSL.py | |
parent | 07f19b6350bfa2c293b11ba781394052ee333a54 (diff) | |
download | pyopenssl-d259e1d5ae2d71c2c8d8a9ea6317dc1de785dbad.tar.gz |
Don’t inherit from object (#1084)
In python3 all classes inherit by default from object
Diffstat (limited to 'src/OpenSSL/SSL.py')
-rw-r--r-- | src/OpenSSL/SSL.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py index 12374b7..6064233 100644 --- a/src/OpenSSL/SSL.py +++ b/src/OpenSSL/SSL.py @@ -293,7 +293,7 @@ class SysCallError(Error): pass -class _CallbackExceptionHelper(object): +class _CallbackExceptionHelper: """ A base class for wrapper classes that allow for intelligent exception handling in OpenSSL callbacks. @@ -657,7 +657,7 @@ _requires_keylog = _make_requires( ) -class Session(object): +class Session: """ A class representing an SSL session. A session defines certain connection parameters which may be re-used to speed up the setup of subsequent @@ -669,7 +669,7 @@ class Session(object): pass -class Context(object): +class Context: """ :class:`OpenSSL.SSL.Context` instances define the parameters for setting up new SSL connections. @@ -1588,7 +1588,7 @@ class Context(object): ) -class Connection(object): +class Connection: _reverse_mapping = WeakValueDictionary() def __init__(self, context, socket=None): |