From fb050226ce94265e7d1be9245467e658e43da849 Mon Sep 17 00:00:00 2001 From: Brennen Raimer Date: Sat, 7 Mar 2020 18:09:06 -0500 Subject: [PATCH] remove unnecessary system check for Unicode output resolves #5 resolves #25 resolves #141 obsoletes #142 --- halo/_utils.py | 16 ---------------- halo/halo.py | 9 +++------ 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/halo/_utils.py b/halo/_utils.py index 999a95b..3bf5985 100644 --- a/halo/_utils.py +++ b/halo/_utils.py @@ -15,22 +15,6 @@ init(autoreset=True) -def is_supported(): - """Check whether operating system supports main symbols or not. - - Returns - ------- - boolean - Whether operating system supports main symbols or not - """ - - os_arch = platform.system() - - if os_arch != 'Windows': - return True - - return False - def get_environment(): """Get the environment in which halo is running diff --git a/halo/halo.py b/halo/halo.py index 9e10b66..8ebaa86 100644 --- a/halo/halo.py +++ b/halo/halo.py @@ -333,13 +333,10 @@ def _get_spinner(self, spinner): if spinner and type(spinner) == dict: return spinner - if is_supported(): - if all([is_text_type(spinner), spinner in Spinners.__members__]): - return Spinners[spinner].value - else: - return default_spinner + if all([is_text_type(spinner), spinner in Spinners.__members__]): + return Spinners[spinner].value else: - return Spinners["line"].value + return default_spinner def _get_text(self, text): """Creates frames based on the selected animation