+            else:
+                if type(json) == list:
+                    json = [self._substitute_uuids(elem) for elem in json]
+                else:
+                    json = tuple(self._substitute_uuids(elem) for elem in
json)

tuple/list are treated identically, based upon the

  return ["named-uuid", _uuid_name_from_uuid(uuid)]

right above your change.  Might as well go with the simple

  json = [self._substitute_uuids(elem) for elem in json]

if it is equivalent.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to