docs/conf.py: make regexp string raw

Fixes:

    conf.py:12: DeprecationWarning: invalid escape sequence \Z

when building docs using Python 3.6 with warnings enabled.
This commit is contained in:
Jakub Wilk 2018-01-08 23:17:06 +01:00
parent ec32fe3104
commit b8b64d42bd

View File

@ -9,7 +9,7 @@ extensions = ['sphinx.ext.intersphinx']
from get_version import __version__ as hy_version
# Read the Docs might dirty its checkout, so strip the dirty flag.
hy_version = re.sub('[+.]dirty\Z', '', hy_version)
hy_version = re.sub(r'[+.]dirty\Z', '', hy_version)
templates_path = ['_templates']
source_suffix = '.rst'