From 1dabddeb85456592746b9c4720645334118cae33 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Mon, 2 Aug 2021 11:59:07 -0700 Subject: [PATCH] make display classes implement IDisplay (#8963) --- certbot/certbot/_internal/display/obj.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/certbot/certbot/_internal/display/obj.py b/certbot/certbot/_internal/display/obj.py index d72f8794e..5646d2d35 100644 --- a/certbot/certbot/_internal/display/obj.py +++ b/certbot/certbot/_internal/display/obj.py @@ -33,6 +33,9 @@ class _DisplayService: _SERVICE = _DisplayService() +# This use of IDisplay can be removed when this class is no longer accessible +# through the public API in certbot.display.util. +@zope.interface.implementer(interfaces.IDisplay) class FileDisplay: """File-based display.""" # see https://github.com/certbot/certbot/issues/3915 @@ -381,6 +384,9 @@ class FileDisplay: return util.OK, selection +# This use of IDisplay can be removed when this class is no longer accessible +# through the public API in certbot.display.util. +@zope.interface.implementer(interfaces.IDisplay) class NoninteractiveDisplay: """An iDisplay implementation that never asks for interactive user input"""