From 959b872d6f64d8039c5dc93485c368f8bc50341c Mon Sep 17 00:00:00 2001 From: Steve McIntyre Date: Tue, 13 Oct 2015 18:33:42 +0100 Subject: Fix pylint warning on regex string Change-Id: I1a5eb17709d0e01ab26dc8c8fe727f4f7a7da283 --- drivers/Dummy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3