aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2015-10-13 18:33:42 +0100
committerSteve McIntyre <steve.mcintyre@linaro.org>2015-10-13 18:33:42 +0100
commit959b872d6f64d8039c5dc93485c368f8bc50341c (patch)
tree174a58ec2fc17d396fcba1cf8f15f3b1902b49e1
parent465ccbd003ba8c4bbacd50c438f143ed2ed8e33d (diff)
Fix pylint warning on regex string
Change-Id: I1a5eb17709d0e01ab26dc8c8fe727f4f7a7da283
-rw-r--r--drivers/Dummy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/Dummy.py b/drivers/Dummy.py
index 66a35b0..41f36af 100644
--- a/drivers/Dummy.py
+++ b/drivers/Dummy.py
@@ -208,7 +208,7 @@ class Dummy(SwitchDriver):
except:
# Create data here
self._dummy_vlans = {1: 'DEFAULT'}
- match = re.match('dummy-(\d+)', self.hostname)
+ match = re.match(r'dummy-(\d+)', self.hostname)
if match:
num_ports = int(match.group(1))
else: