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: 53215ea1d51ffc025d18a2f5b97f59b48559cee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Shim around `~certbot_dns_route53.dns_route53` for backwards compatibility."""
import warnings

import zope.interface

from certbot import interfaces
from certbot_dns_route53 import dns_route53


@zope.interface.implementer(interfaces.IAuthenticator)
@zope.interface.provider(interfaces.IPluginFactory)
class Authenticator(dns_route53.Authenticator):
    """Shim around `~certbot_dns_route53.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)