summaryrefslogtreecommitdiff
path: root/bitsandbytes/utils.py
diff options
context:
space:
mode:
authorTitus von Koeller <titus@vonkoeller.com>2022-08-02 21:26:50 -0700
committerTitus von Koeller <titus@vonkoeller.com>2022-08-02 21:26:50 -0700
commit59a615b3869eb8488a748e2aa51224a5e3d366bb (patch)
tree5f348d63ba837d08bbc5df703a748c0ae6e34ddd /bitsandbytes/utils.py
parent3809236428e704f9a7e22232701a651aafa5ca1b (diff)
factored cuda_setup.main out into smaller modules and functions
Diffstat (limited to 'bitsandbytes/utils.py')
-rw-r--r--bitsandbytes/utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitsandbytes/utils.py b/bitsandbytes/utils.py
index e1d9460..4256a87 100644
--- a/bitsandbytes/utils.py
+++ b/bitsandbytes/utils.py
@@ -1,9 +1,9 @@
-import sys
import shlex
import subprocess
-
+import sys
from typing import Tuple
+
def execute_and_return(command_string: str) -> Tuple[str, str]:
def _decode(subprocess_err_out_tuple):
return tuple(
@@ -24,9 +24,9 @@ def execute_and_return(command_string: str) -> Tuple[str, str]:
return std_out, std_err
-def print_err(s: str) -> None:
+def print_stderr(s: str) -> None:
print(s, file=sys.stderr)
def warn_of_missing_prerequisite(s: str) -> None:
- print_err("WARNING, missing pre-requisite: " + s)
+ print_stderr("WARNING, missing pre-requisite: " + s)