certbot.compat.misc module¶
This compat module handles various platform specific calls that do not fall into one particular category.
-
certbot.compat.misc.
raise_for_non_administrative_windows_rights
()[source]¶ On Windows, raise if current shell does not have the administrative rights. Do nothing on Linux.
Raises: errors.Error – If the current shell does not have administrative rights on Windows.
-
certbot.compat.misc.
readline_with_timeout
(timeout, prompt)[source]¶ Read user input to return the first line entered, or raise after specified timeout.
Parameters: - timeout (float) – The timeout in seconds given to the user.
- prompt (str) – The prompt message to display to the user.
Returns: The first line entered by the user.
Return type: str