odp-util: Handle ipv6 in set nw action.
[openvswitch] / python / ovs / db / error.py
index 882518cb11604cca4c56f67001ed00e3f9a89d0a..c3fd3020a8499f3d6a452b1ffe22ca6795c79cb6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2009, 2010 Nicira Networks
+# Copyright (c) 2009, 2010, 2011 Nicira Networks
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -14,6 +14,7 @@
 
 import ovs.json
 
+
 class Error(Exception):
     def __init__(self, msg, json=None, tag=None):
         self.msg = msg
@@ -29,5 +30,5 @@ class Error(Exception):
         # Compose message.
         syntax = ""
         if self.json is not None:
-                syntax = "syntax \"%s\": " % ovs.json.to_string(self.json)
+                syntax = 'syntax "%s": ' % ovs.json.to_string(self.json)
         Exception.__init__(self, "%s%s: %s" % (syntax, self.tag, self.msg))