X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/faaa2c8d59cd6f6321acec0b3126835b445e3080..6aef6c9d458e8df88f510e94c18f216232b6a786:/black.py?ds=sidebyside diff --git a/black.py b/black.py index b8736e7..ff373c8 100644 --- a/black.py +++ b/black.py @@ -12,7 +12,7 @@ from multiprocessing import Manager, freeze_support import os from pathlib import Path import pickle -import re +import regex as re import signal import sys import tempfile @@ -3810,7 +3810,8 @@ def re_compile_maybe_verbose(regex: str) -> Pattern[str]: """ if "\n" in regex: regex = "(?x)" + regex - return re.compile(regex) + compiled: Pattern[str] = re.compile(regex) + return compiled def enumerate_reversed(sequence: Sequence[T]) -> Iterator[Tuple[Index, T]]: