mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 08:42:57 -04:00
make display classes implement IDisplay (#8963)
This commit is contained in:
parent
f9ef894141
commit
1dabddeb85
1 changed files with 6 additions and 0 deletions
|
|
@ -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"""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue