From b8b64d42bd337a11a2ef2478d6b1b1f566459722 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Mon, 8 Jan 2018 23:17:06 +0100 Subject: [PATCH] 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. --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 9877cc4..fb84d28 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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'