From 9fe8489bfe0ca2c5037eba7fc9b5107f16e3b207 Mon Sep 17 00:00:00 2001 From: Ashley Whetter Date: Thu, 13 Dec 2018 17:52:30 -0800 Subject: [PATCH] Fixed lint errors --- autoapi/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoapi/utils.py b/autoapi/utils.py index 5fcf0a7..a643712 100644 --- a/autoapi/utils.py +++ b/autoapi/utils.py @@ -10,5 +10,5 @@ def slugify(value): underscores) and converts spaces to hyphens. Also strips leading and trailing whitespace. """ - value = re.sub('[^\w\s-]', '', value).strip() - return re.sub('[-\s]+', '-', value) + value = re.sub(r'[^\w\s-]', '', value).strip() + return re.sub(r'[-\s]+', '-', value)