python: Take advantage of Python "x < y < z" syntax.
[openvswitch] / python / ovs / db / data.py
index 531d5338e5cdc16273528770cb9e946951e0ab5f..551eef17c106065cbd219e2010af79e6be66e774 100644 (file)
@@ -402,7 +402,7 @@ class Datum(object):
 
     def conforms_to_type(self):
         n = len(self.values)
-        return n >= self.type.n_min and n <= self.type.n_max
+        return self.type.n_min <= n <= self.type.n_max
 
     def cInitDatum(self, var):
         if len(self.values) == 0: