*/t/*.py: Fix the various testing scripts for Python 3 compatibility.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 4 Oct 2019 17:30:26 +0000 (18:30 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 8 May 2020 12:44:29 +0000 (13:44 +0100)
commit37342632a8bb95fe68ece90d18b8b69263edb83b
treef331895dd6b4a9a4edbbaa8d422227b4d2fd0ccf
parent3618811496a6d131fd4bffa19e262c521d39e819
*/t/*.py: Fix the various testing scripts for Python 3 compatibility.

  * Put parentheses around `print' arguments.  (This is most of the
    churn.)

  * Cope with `xrange' being renamed to `range' in Python 3.

  * Cope with `MAP.keys()' not returning a list any more in Python 3.

  * Cope with integer division not returning an integer any more in
    Python 3.  (Use a shift, because that's not changed.)
hash/t/unihash-testgen.py
struct/t/da-gtest.py
struct/t/sym-gtest.py
utils/t/bits-testgen.py