summaryrefslogtreecommitdiff
path: root/python/ovs/db
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2019-01-10 15:23:45 -0800
committerBen Pfaff <blp@ovn.org>2019-01-11 08:45:04 -0800
commit145a7e88bbc71b65f4c5015436c9f086a19b5a4a (patch)
tree73a93c724bdceffa97580b97a7e33701a86d48fc /python/ovs/db
parent70506167a585e6334291de7a331324f0e58207ff (diff)
downloadopenvswitch-145a7e88bbc71b65f4c5015436c9f086a19b5a4a.tar.gz
python: Fix invalid escape sequences.
It appears that Python silently treats invalid escape sequences in strings as literals, e.g. "\." is the same as "\\.". Newer versions of checkpatch complain, and it does seem reasonable to me to fix these. Acked-by: Numan Siddique <nusiddiq@redhat.com> Tested-by: Numan Siddique <nusiddiq@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'python/ovs/db')
-rw-r--r--python/ovs/db/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/ovs/db/schema.py b/python/ovs/db/schema.py
index 55c8ae7f3..44b030757 100644
--- a/python/ovs/db/schema.py
+++ b/python/ovs/db/schema.py
@@ -73,7 +73,7 @@ class DbSchema(object):
parser.finish()
if (version is not None and
- not re.match('[0-9]+\.[0-9]+\.[0-9]+$', version)):
+ not re.match(r'[0-9]+\.[0-9]+\.[0-9]+$', version)):
raise error.Error('schema version "%s" not in format x.y.z'
% version)