diff options
author | Zuul <zuul@review.openstack.org> | 2018-04-09 13:17:56 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-04-09 13:17:56 +0000 |
commit | 3ceba790425b6f0f00ad9469440245d779d9deb8 (patch) | |
tree | 05b8570b1af64e9d9d5fa17c3d37d187b0b1fc47 /glanceclient | |
parent | 79543a67edd7a15aa23426548d3be9ac5b99366d (diff) | |
parent | 1868200e9c1554f58ef06644890787921c0879cb (diff) | |
download | python-glanceclient-3ceba790425b6f0f00ad9469440245d779d9deb8.tar.gz |
Merge "Fix python 3.6 escape char warning"
Diffstat (limited to 'glanceclient')
-rw-r--r-- | glanceclient/common/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/common/utils.py b/glanceclient/common/utils.py index d194e65..b61913e 100644 --- a/glanceclient/common/utils.py +++ b/glanceclient/common/utils.py @@ -380,7 +380,7 @@ def strip_version(endpoint): (scheme, netloc, path, __, __, __) = url_parts path = path.lstrip('/') # regex to match 'v1' or 'v2.0' etc - if re.match('v\d+\.?\d*', path): + if re.match(r'v\d+\.?\d*', path): version = float(path.lstrip('v')) endpoint = scheme + '://' + netloc return endpoint, version |