From f745df2a89f6d8da2ee9040fbeb4fc064d82cc41 Mon Sep 17 00:00:00 2001 From: asarfaty Date: Mon, 6 Apr 2020 06:26:37 +0200 Subject: [PATCH] Remove python deprecation warning for raw string Change-Id: I12781a74479669355e966a9bf972b82ab6518b17 --- vmware_nsxlib/v3/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsxlib/v3/cluster.py b/vmware_nsxlib/v3/cluster.py index 4b143258..43228f57 100644 --- a/vmware_nsxlib/v3/cluster.py +++ b/vmware_nsxlib/v3/cluster.py @@ -321,7 +321,7 @@ class NSXRequestsHTTPProvider(AbstractHTTPProvider): else: for header_name in resp.headers: if self.SET_COOKIE_FIELD.lower() == header_name.lower(): - m = re.match('%s=.*?\;' % self.JSESSIONID, # noqa + m = re.match(r'%s=.*?\;' % self.JSESSIONID, # noqa resp.headers[header_name]) if m: session.default_headers[self.COOKIE_FIELD] = (