Need help from a python wizard
hmurray at megapathdsl.net
Tue Dec 5 02:27:37 UTC 2017
> There is a change in the way this is handled by Python between 2 and 3.
> You can force integer arithmetic with "//" like 3 // 2 which
> will result in 1.
Thanks. That's what I was looking for.
And here is the corresponding commit at the right time:
Author: Ian Bruene <ianbruene at gmail.com>
Date: Thu Sep 21 18:33:53 2017 -0500
util.py tests now work with Python 3, fixed missing future division import
diff --git a/pylib/util.py b/pylib/util.py
index 4dbeeb9d9..e6e54d695 100644
@@ -2,7 +2,7 @@
# Common utility functions
# SPDX-License-Identifier: BSD-2-clause
-from __future__ import print_function
+from __future__ import print_function, division
These are my opinions. I hate spam.
More information about the devel