From 93338ffe5c13a961ca432e991af1f693554418a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herman=20=C3=98ie=20Kolden?= Date: Wed, 31 Oct 2018 21:35:18 +0100 Subject: [PATCH] Translate to python3 --- varnish.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/varnish.py b/varnish.py index 87abf22..1f6a05c 100644 --- a/varnish.py +++ b/varnish.py @@ -6,6 +6,7 @@ import subprocess import zope.component import zope.interface +from zope.interface import implementer, provider from acme import challenges @@ -23,9 +24,9 @@ def vcl_recv_line(achall): def vcl_synth_line(validation): return 'if (resp.status == 999) { set resp.status = 200; set resp.http.Content-Type = "text/plain"; synthetic("%s"); return (deliver); } # Added by letsencrypt Varnish plugin for authentication\n' % (validation); +@implementer(interfaces.IAuthenticator) +@provider(interfaces.IPluginFactory) class Authenticator(common.Plugin): - zope.interface.implements(interfaces.IAuthenticator) - zope.interface.classProvides(interfaces.IPluginFactory) hidden = True description = "Manual configuration, authentication via Varnish VCL" -- 2.39.2