Welcome to mirror list, hosted at ThFree Co, Russian Federation.

authenticator.py « certbot_dns_route53 « certbot-dns-route53 - github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2987934a1eec6e254509f2c38c54c4fdaee6f342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""Shim around `~certbot_dns_route53._internal.dns_route53` for backwards compatibility."""
import warnings

import zope.interface

from certbot import interfaces
from certbot_dns_route53._internal import dns_route53


@zope.interface.implementer(interfaces.IAuthenticator)
@zope.interface.provider(interfaces.IPluginFactory)
class Authenticator(dns_route53.Authenticator):
    """Shim around `~certbot_dns_route53._internal.dns_route53.Authenticator`
       for backwards compatibility."""

    hidden = True

    def __init__(self, *args, **kwargs):
        warnings.warn("The 'authenticator' module was renamed 'dns_route53'",
                      DeprecationWarning)
        super(Authenticator, self).__init__(*args, **kwargs)