projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python: Take advantage of Python "x < y < z" syntax.
[openvswitch]
/
python
/
ovs
/
db
/
data.py
diff --git
a/python/ovs/db/data.py
b/python/ovs/db/data.py
index 531d5338e5cdc16273528770cb9e946951e0ab5f..551eef17c106065cbd219e2010af79e6be66e774 100644
(file)
--- a/
python/ovs/db/data.py
+++ b/
python/ovs/db/data.py
@@
-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: