Merge pull request #2 from hyperair/python3

Make certbot-route53 python3 compatible
This commit is contained in:
Paulo Köch 2017-02-28 20:16:17 +00:00 committed by GitHub
commit df158a717d

View file

@ -16,9 +16,9 @@ logger = logging.getLogger(__name__)
TTL = 30
@zope.interface.implementer(interfaces.IAuthenticator)
@zope.interface.provider(interfaces.IPluginFactory)
class Authenticator(common.Plugin):
zope.interface.implements(interfaces.IAuthenticator)
zope.interface.classProvides(interfaces.IPluginFactory)
description = "Route53 Authenticator"
@ -66,7 +66,7 @@ class Authenticator(common.Plugin):
response, validation = achall.response_and_validation()
self._excute_r53_action(r53, achall, zone, validation, 'UPSERT', wait_for_change=True)
for _ in xrange(TTL*2):
for _ in range(TTL*2):
if response.simple_verify(
achall.chall,
achall.domain,