From b72da818ea3328594c90074616cdbac17b0246d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Fri, 27 Mar 2020 10:17:36 +0100 Subject: [PATCH] Minor formatting --- tutor/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutor/utils.py b/tutor/utils.py index 03f73f2..6abcaf3 100644 --- a/tutor/utils.py +++ b/tutor/utils.py @@ -96,6 +96,7 @@ def kubectl(*command): ) return execute("kubectl", *command) + def is_a_tty(): """ Return True if stdin is able to allocate a tty. Tty allocation sometimes cannot be @@ -103,6 +104,7 @@ def is_a_tty(): """ return os.isatty(sys.stdin.fileno()) + def execute(*command): click.echo(fmt.command(" ".join(command))) with subprocess.Popen(command) as p: