diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-03-14 01:54:20 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-14 01:54:20 +0900 |
commit | 7bc2d82da76fb97b0ed685b54baba2af68dba8e6 (patch) | |
tree | db219829767796440bbc25a2dbc5e4cdc5653cb0 /sphinx/util/rst.py | |
parent | fd18695689bb6224261cba378354dabe4ec4fbb4 (diff) | |
parent | 786c3e0c20b515687c16d2ef34cd50eff4c3e742 (diff) | |
download | sphinx-git-7bc2d82da76fb97b0ed685b54baba2af68dba8e6.tar.gz |
Merge pull request #4730 from guoci/regex_no_warning
prevent raising of FutureWarning in regex
Diffstat (limited to 'sphinx/util/rst.py')
-rw-r--r-- | sphinx/util/rst.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/rst.py b/sphinx/util/rst.py index a406e0044..f39549276 100644 --- a/sphinx/util/rst.py +++ b/sphinx/util/rst.py @@ -23,7 +23,7 @@ if False: # For type annotation 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__) |