resources_bytesio is only used by ruby

This commit is contained in:
Anthony Sottile 2023-02-20 21:45:04 -05:00
parent 4f6ba18cad
commit 8d84a7a270
3 changed files with 9 additions and 9 deletions

View file

@ -12,7 +12,6 @@ from types import TracebackType
from typing import Any
from typing import Callable
from typing import Generator
from typing import IO
from pre_commit import parse_shebang
@ -36,10 +35,6 @@ def clean_path_on_failure(path: str) -> Generator[None, None, None]:
raise
def resource_bytesio(filename: str) -> IO[bytes]:
return importlib.resources.open_binary('pre_commit.resources', filename)
def resource_text(filename: str) -> str:
return importlib.resources.read_text('pre_commit.resources', filename)