diff options
author | Markos Chandras <mchandras@suse.de> | 2017-12-27 18:27:13 +0000 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-01-09 11:34:45 -0800 |
commit | bff7da4e0e2f63f5cb2f6179ef5a102f171122bd (patch) | |
tree | f2b86a0044a21c316ca215e123c2b1bafadca730 /ovsdb/ovsdb-dot.in | |
parent | 9a0dbc7b802a312c3b42fa88bd9d5fe7438e88e8 (diff) | |
download | openvswitch-bff7da4e0e2f63f5cb2f6179ef5a102f171122bd.tar.gz |
ovsdb: ovsdb-dot.in: Replace sys.maxint with sys.maxsize for Python3
There is no sys.maxint anymore on python3. However, sys.maxsize can be
used as an integer larger than any practical list or string index.
Link: https://docs.python.org/3.1/whatsnew/3.0.html#integers
Signed-off-by: Markos Chandras <mchandras@suse.de>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovsdb/ovsdb-dot.in')
-rwxr-xr-x | ovsdb/ovsdb-dot.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ovsdb/ovsdb-dot.in b/ovsdb/ovsdb-dot.in index 43c50dabd..8eea61724 100755 --- a/ovsdb/ovsdb-dot.in +++ b/ovsdb/ovsdb-dot.in @@ -15,14 +15,14 @@ def printEdge(tableName, type, baseType, label): if type.n_min == 0: if type.n_max == 1: arity = "?" - elif type.n_max == sys.maxint: + elif type.n_max == sys.maxsize: arity = "*" else: arity = "{,%d}" % type.n_max elif type.n_min == 1: if type.n_max == 1: arity = "" - elif type.n_max == sys.maxint: + elif type.n_max == sys.maxsize: arity = "+" else: arity = "{1,%d}" % type.n_max |