From 9f6ccb723b5aea7df1367a04116a8515324af375 Mon Sep 17 00:00:00 2001 From: Aidan Timson Date: Thu, 12 May 2022 19:06:27 +0100 Subject: [PATCH] Move to bottom --- sanic/compat.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sanic/compat.py b/sanic/compat.py index 27dfe5bef1..ae4e0f214f 100644 --- a/sanic/compat.py +++ b/sanic/compat.py @@ -25,10 +25,6 @@ def enable_windows_color_support(): kernel.SetConsoleMode(kernel.GetStdHandle(-11), 7) -def is_atty(): - return stdout and stdout.isatty() - - class Header(CIMultiDict): """ Container used for both request and response headers. It is a subclass of @@ -93,3 +89,7 @@ def ctrlc_handler(sig, frame): die = False signal.signal(signal.SIGINT, ctrlc_handler) app.add_task(stay_active) + + +def is_atty(): + return stdout and stdout.isatty()