prevent raising of FutureWarning in regex.

This commit is contained in:
guoci
2018-03-13 11:49:44 -04:00
parent 87e8dd16b2
commit 786c3e0c20

View File

@@ -23,7 +23,7 @@ from sphinx.util import logging
if TYPE_CHECKING:
from typing import Generator # NOQA
symbols_re = re.compile(r'([!--/:-@\[-`{-~])') # symbols without dot(0x2e)
symbols_re = re.compile(r'([!-\-/:-@\[-`{-~])') # symbols without dot(0x2e)
logger = logging.getLogger(__name__)