Provide a simplified download progress in non-terminal environments

This commit is contained in:
Ivan Kravets committed 2022-08-03 20:33:24 +03:00
1 parent b04c1591c2
commit a4756987a4
2 files changed
+31 -6

No files matched your search

+7
View File
@@ -50,6 +50,13 @@ def isascii(text):
return True
def is_terminal():
try:
return sys.stdout.isatty()
except Exception: # pylint: disable=broad-except
return False
def ci_strings_are_equal(a, b):
if a == b:
return True