forked from platformio/platformio-core
Provide a simplified download progress in non-terminal environments
This commit is contained in:
1 parent
b04c1591c2
commit
a4756987a4
2 files changed
+31
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user