Page MenuHomeClusterLabs Projects

input.py
No OneTemporary

input.py

"""User input related utilities for CTS."""
__all__ = ["should_continue"]
__copyright__ = "Copyright 2000-2024 the Pacemaker project contributors"
__license__ = "GNU General Public License version 2 or later (GPLv2+) WITHOUT ANY WARRANTY"
def should_continue(env):
"""On failure, prompt the user to see if we should continue."""
if env["continue"]:
return True
try:
answer = input("Continue? [yN]")
except EOFError:
answer = "n"
return answer in ["y", "Y"]

File Metadata

Mime Type
text/plain
Expires
Tue, Jul 8, 3:29 PM (14 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2002193
Default Alt Text
input.py (506 B)

Event Timeline