From: Jelle Zijlstra Date: Fri, 26 Nov 2021 02:34:19 +0000 (-0800) Subject: fix regex (#2643) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/17e42cb94b494f0e5d7c80ee842f578a5a3cefcc?ds=inline;hp=db2715441a391f218863493aa20027f802ab0c7b fix regex (#2643) --- diff --git a/tests/test_black.py b/tests/test_black.py index 3d5d398..4267c61 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -31,7 +31,7 @@ from unittest.mock import MagicMock, patch import click import pytest -import regex as re +import re from click import unstyle from click.testing import CliRunner from pathspec import PathSpec @@ -70,7 +70,7 @@ T = TypeVar("T") R = TypeVar("R") # Match the time output in a diff, but nothing else -DIFF_TIME = re.compile(r"\t[\d-:+\. ]+") +DIFF_TIME = re.compile(r"\t[\d\-:+\. ]+") @contextmanager