File: 0001-Fix-anomalous-backslash-in-string.patch

package info (click to toggle)
profitbricks-sdk-python 4.1.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 840 kB
  • sloc: python: 6,662; makefile: 10
file content (29 lines) | stat: -rw-r--r-- 1,123 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From fea06351108c1a03977652d4af8f1e3dddcc1a53 Mon Sep 17 00:00:00 2001
From: Benjamin Drung <benjamin.drung@profitbricks.com>
Date: Mon, 1 Oct 2018 15:22:09 +0200
Subject: [PATCH] Fix anomalous backslash in string

pylint complains: Anomalous backslash in string: '\d'. String constant
might be missing an r prefix. (anomalous-backslash-in-string)

Forwarded: https://github.com/profitbricks/profitbricks-sdk-python/pull/77
---
 profitbricks/client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profitbricks/client.py b/profitbricks/client.py
index 4a13d81..847aaf7 100644
--- a/profitbricks/client.py
+++ b/profitbricks/client.py
@@ -66,7 +66,7 @@ class ProfitBricksService(object):
             headers = dict()
         self._config = None
         self._config_filename = None
-        self.keyring_identificator = '%s (%s)' % (re.sub("/v\d+$", '', host_base), _LIBRARY_NAME)
+        self.keyring_identificator = '%s (%s)' % (re.sub(r"/v\d+$", '', host_base), _LIBRARY_NAME)
         self.host_base = host_base
         self.host_cert = host_cert
         self.verify = ssl_verify
-- 
2.17.1