Need help from a python wizard
    Hal Murray 
    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:
commit 9765c7ce597f0933f8b45fa627d195262be4ed6f
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
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -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
mailing list