summaryrefslogtreecommitdiff
path: root/oslo_middleware/stats.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_middleware/stats.py')
-rw-r--r--oslo_middleware/stats.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/oslo_middleware/stats.py b/oslo_middleware/stats.py
index 9839fd5..11c4789 100644
--- a/oslo_middleware/stats.py
+++ b/oslo_middleware/stats.py
@@ -21,12 +21,12 @@ import webob.dec
from oslo_middleware import base
LOG = logging.getLogger(__name__)
-VERSION_REGEX = re.compile("/(v[0-9]{1}\.[0-9]{1})")
+VERSION_REGEX = re.compile(r"/(v[0-9]{1}\.[0-9]{1})")
UUID_REGEX = re.compile(
- '.*(\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}).*a',
+ r'.*(\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}).*a',
re.IGNORECASE)
# UUIDs without the - char, used in some places in Nova URLs.
-SHORT_UUID_REGEX = re.compile('.*(\.[0-9a-fA-F]{32}).*')
+SHORT_UUID_REGEX = re.compile(r'.*(\.[0-9a-fA-F]{32}).*')
class StatsMiddleware(base.ConfigurableMiddleware):