make display classes implement IDisplay (#8963)

This commit is contained in:
Brad Warren 2021-08-02 11:59:07 -07:00 committed by GitHub
parent f9ef894141
commit 1dabddeb85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"""