diff options
author | Christian Heimes <cheimes@redhat.com> | 2018-09-26 11:59:50 +0200 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2018-09-27 11:49:04 +0200 |
commit | b431e9b684df11c811892bd9d2a5711355f0076e (patch) | |
tree | 77a831532933ea9c289529e1974300c7be276a18 /ipapython/ssh.py | |
parent | 4a58adf79e8b6b1dfbd534f16bcec368a189131e (diff) | |
download | freeipa-b431e9b684df11c811892bd9d2a5711355f0076e.tar.gz freeipa-b431e9b684df11c811892bd9d2a5711355f0076e.tar.xz freeipa-b431e9b684df11c811892bd9d2a5711355f0076e.zip |
Py3: Remove subclassing from object
Python 2 had old style and new style classes. Python 3 has only new
style classes. There is no point to subclass from object any more.
See: https://pagure.io/freeipa/issue/7715
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Diffstat (limited to 'ipapython/ssh.py')
-rw-r--r-- | ipapython/ssh.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipapython/ssh.py b/ipapython/ssh.py index d5439a973..7d52a205b 100644 --- a/ipapython/ssh.py +++ b/ipapython/ssh.py @@ -38,7 +38,8 @@ __all__ = ['SSHPublicKey'] OPENSSH_BASE_REGEX = re.compile(r'^[\t ]*(?P<keytype>[^\x00\n\r]+?) [\t ]*(?P<key>[^\x00\n\r]+?)(?:[\t ]+(?P<comment>[^\x00\n\r]*?)[\t ]*)?$') OPENSSH_OPTIONS_REGEX = re.compile(r'(?P<name>[-0-9A-Za-z]+)(?:="(?P<value>(?:\\"|[^\x00\n\r"])*)")?') -class SSHPublicKey(object): + +class SSHPublicKey: """ SSH public key object. """ |