From 3a9fcf1c8f60c160c282c9755ee1c7f9f7e113c3 Mon Sep 17 00:00:00 2001 From: Jason Wessel Date: Thu, 29 Jun 2017 20:33:23 -0700 Subject: [PATCH 6/8] Python3 compatibility: math error compatibility Commit 3fa5aa4294377e0f35267936d0c5caea3e61db48 from https://github.com/openvswitch/ovs.git The way math is handled with typing is completely different in python3. % python2< Signed-off-by: Ben Pfaff --- build-aux/extract-ofp-actions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/extract-ofp-actions b/build-aux/extract-ofp-actions index c11297c..bd7131f 100755 --- a/build-aux/extract-ofp-actions +++ b/build-aux/extract-ofp-actions @@ -35,7 +35,7 @@ line = "" arg_structs = set() def round_up(x, y): - return (x + (y - 1)) / y * y + return int((x + (y - 1)) / y) * y def open_file(fn): global file_name -- 2.5.0