diff --git a/.pylintrc b/.pylintrc index 720692f..51d5fb3 100644 --- a/.pylintrc +++ b/.pylintrc @@ -195,7 +195,7 @@ allowed-redefined-builtins= # List of qualified module names which can have objects that can redefine # builtins. -redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io +redefining-builtins-modules=builtins,io [FORMAT] @@ -546,4 +546,4 @@ check-str-concat-over-line-jumps=no # Max line length for which to sill emit suggestions. Used to prevent optional # suggestions which would get split by a code formatter (e.g., black). Will # default to the setting for ``max-line-length``. -#max-line-length-suggestions= \ No newline at end of file +#max-line-length-suggestions= diff --git a/halo/_utils.py b/halo/_utils.py index d78ef8a..37d9484 100644 --- a/halo/_utils.py +++ b/halo/_utils.py @@ -3,7 +3,6 @@ """ import codecs import platform -import six from colorama import init from shutil import get_terminal_size @@ -87,10 +86,7 @@ def is_text_type(text): bool Whether parameter is a string or not """ - if isinstance(text, six.text_type) or isinstance(text, six.string_types): - return True - - return False + return isinstance(text, str) def decode_utf_8_text(text): diff --git a/requirements.txt b/requirements.txt index b7f6879..cf0d566 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,3 @@ log_symbols>=0.0.14 spinners>=0.0.24 termcolor>=1.1.0 colorama>=0.3.9 -six>=1.12.0