X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/133609463459b2b6a98f08bcf41a07f6b14ab747..34aeee68799d33d5ab85901d3d778e4b7b6d78c9:/black.py 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]]: