mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Split out cmd_output_b
This commit is contained in:
parent
ab063977ad
commit
f612aeb22b
20 changed files with 79 additions and 70 deletions
|
|
@ -11,7 +11,7 @@ import sys
|
|||
import six
|
||||
|
||||
from pre_commit import parse_shebang
|
||||
from pre_commit.util import cmd_output
|
||||
from pre_commit.util import cmd_output_b
|
||||
|
||||
|
||||
def _environ_size(_env=None):
|
||||
|
|
@ -122,7 +122,7 @@ def xargs(cmd, varargs, **kwargs):
|
|||
partitions = partition(cmd, varargs, target_concurrency, max_length)
|
||||
|
||||
def run_cmd_partition(run_cmd):
|
||||
return cmd_output(*run_cmd, encoding=None, retcode=None, **kwargs)
|
||||
return cmd_output_b(*run_cmd, retcode=None, **kwargs)
|
||||
|
||||
threads = min(len(partitions), target_concurrency)
|
||||
with _thread_mapper(threads) as thread_map:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue