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