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
|
|
@ -6,6 +6,7 @@ import sys
|
|||
from pre_commit.languages import python
|
||||
from pre_commit.util import CalledProcessError
|
||||
from pre_commit.util import cmd_output
|
||||
from pre_commit.util import cmd_output_b
|
||||
|
||||
|
||||
ENVIRONMENT_DIR = 'py_venv'
|
||||
|
|
@ -48,7 +49,7 @@ def orig_py_exe(exe): # pragma: no cover (platform specific)
|
|||
|
||||
|
||||
def make_venv(envdir, python):
|
||||
cmd_output(orig_py_exe(python), '-mvenv', envdir, cwd='/')
|
||||
cmd_output_b(orig_py_exe(python), '-mvenv', envdir, cwd='/')
|
||||
|
||||
|
||||
_interface = python.py_interface(ENVIRONMENT_DIR, make_venv)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue