From 1ab1130fe1dbec23966fe92c3a7d5cae32417caf Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Fri, 13 Nov 2020 16:51:26 +0000 Subject: [PATCH] Move initialization of the global logger to the end of the file --- cibuildwheel/logger.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cibuildwheel/logger.py b/cibuildwheel/logger.py index 0fd0d61e..451f632f 100644 --- a/cibuildwheel/logger.py +++ b/cibuildwheel/logger.py @@ -142,13 +142,6 @@ class Logger: return colors_disabled -''' -Global instance of the Logger. -''' -# (there's only one stdout per-process, so a global instance is justified) -log = Logger() - - def build_description_from_identifier(identifier: str): python_identifier, _, platform_identifier = identifier.partition('-') @@ -214,3 +207,10 @@ def file_supports_color(file_obj): def file_is_a_tty(file_obj): return hasattr(file_obj, 'isatty') and file_obj.isatty() + + +''' +Global instance of the Logger. +''' +# (there's only one stdout per-process, so a global instance is justified) +log = Logger()