diff options
author | Mads Jensen <mads.jensen@eficode.com> | 2021-02-26 01:59:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 01:59:00 +0300 |
commit | 67c2b27af7d7dc04c246be4f9a1d4cd29a3099ca (patch) | |
tree | 68109ce37b830ce348f18c89804b9b407e8e9733 /certbot-apache | |
parent | 135187f03e18eebcb32b05c4ecb76a4552aed883 (diff) |
Stop inheriting from object. It's unneeded on Python 3+. (#8675)
Diffstat (limited to 'certbot-apache')
-rw-r--r-- | certbot-apache/certbot_apache/_internal/dualparser.py | 2 | ||||
-rw-r--r-- | certbot-apache/certbot_apache/_internal/obj.py | 2 | ||||
-rw-r--r-- | certbot-apache/certbot_apache/_internal/parser.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/certbot-apache/certbot_apache/_internal/dualparser.py b/certbot-apache/certbot_apache/_internal/dualparser.py index eef8f2a0e..1ba23e92f 100644 --- a/certbot-apache/certbot_apache/_internal/dualparser.py +++ b/certbot-apache/certbot_apache/_internal/dualparser.py @@ -4,7 +4,7 @@ from certbot_apache._internal import augeasparser from certbot_apache._internal import apacheparser -class DualNodeBase(object): +class DualNodeBase: """ Dual parser interface for in development testing. This is used as the base class for dual parser interface classes. This class handles runtime attribute value assertions.""" diff --git a/certbot-apache/certbot_apache/_internal/obj.py b/certbot-apache/certbot_apache/_internal/obj.py index 3cd5f0ff2..e2fe48cf8 100644 --- a/certbot-apache/certbot_apache/_internal/obj.py +++ b/certbot-apache/certbot_apache/_internal/obj.py @@ -95,7 +95,7 @@ class Addr(common.Addr): return self.get_addr_obj(port) -class VirtualHost(object): +class VirtualHost: """Represents an Apache Virtualhost. :ivar str filep: file path of VH diff --git a/certbot-apache/certbot_apache/_internal/parser.py b/certbot-apache/certbot_apache/_internal/parser.py index 75be0833f..fdef167bc 100644 --- a/certbot-apache/certbot_apache/_internal/parser.py +++ b/certbot-apache/certbot_apache/_internal/parser.py @@ -16,7 +16,7 @@ from certbot_apache._internal import constants logger = logging.getLogger(__name__) -class ApacheParser(object): +class ApacheParser: """Class handles the fine details of parsing the Apache Configuration. .. todo:: Make parsing general... remove sites-available etc... |