This series of patches incorporates all the suggestions posted to the dev list (thanks Allan and Martin!), as well as Andrew's python3 branch (thanks Andrew!). Setting 2.7 as the minimum runtime made things much easier. It would be easier still if Python 2 was abandoned... nudge, nudge, wink, wink, say no more. Jeremy Heiner (8): Bail early with a clear error message if Python runtime isn't 2.7+. Use "exec" instead of "execfile" (deprecated in Python 3). Use Python's "0o#" octal literal instead of deprecated "0#". Use dict iteration methods common to both Python 2 and 3. Avoid problematic use of Python's StringIO. Use Python's "range" instead of deprecated "xrange". Add parens around tuples in Python list comprehensions. Allow configure to select a Python 3 runtime. configure.ac | 2 +- test/pacman/pactest.py | 8 +++++++- test/pacman/pmdb.py | 12 ++++++------ test/pacman/pmenv.py | 3 +-- test/pacman/pmfile.py | 3 +-- test/pacman/pmpkg.py | 23 ++++++++++++++++------- test/pacman/pmrule.py | 3 +-- test/pacman/pmtest.py | 14 +++++++------- test/pacman/tests/depconflict100.py | 2 +- test/pacman/tests/depconflict120.py | 2 +- test/pacman/tests/fileconflict001.py | 2 +- test/pacman/tests/fileconflict002.py | 2 +- test/pacman/tests/remove052.py | 2 +- test/pacman/tests/smoke001.py | 4 ++-- test/pacman/tests/smoke003.py | 4 ++-- test/pacman/tests/sync030.py | 2 +- test/pacman/tests/sync031.py | 2 +- test/pacman/tests/sync040.py | 2 +- test/pacman/tests/sync041.py | 2 +- test/pacman/tests/sync405.py | 2 +- test/pacman/tests/sync406.py | 2 +- test/pacman/tests/sync891.py | 2 +- test/pacman/tests/sync892.py | 2 +- test/pacman/tests/sync893.py | 2 +- test/pacman/tests/sync898.py | 2 +- test/pacman/tests/sync990.py | 2 +- test/pacman/tests/sync992.py | 2 +- test/pacman/tests/upgrade005.py | 2 +- test/pacman/tests/upgrade013.py | 2 +- test/pacman/tests/upgrade014.py | 2 +- test/pacman/tests/upgrade030.py | 2 +- test/pacman/tests/upgrade031.py | 2 +- test/pacman/tests/upgrade032.py | 2 +- test/pacman/tests/upgrade040.py | 2 +- test/pacman/tests/upgrade041.py | 2 +- test/pacman/tests/upgrade042.py | 2 +- test/pacman/tests/upgrade043.py | 2 +- test/pacman/tests/upgrade046.py | 2 +- test/pacman/tests/upgrade050.py | 2 +- test/pacman/tests/upgrade059.py | 2 +- test/pacman/tests/upgrade060.py | 2 +- test/pacman/tests/upgrade061.py | 2 +- test/pacman/tests/upgrade073.py | 2 +- test/pacman/tests/upgrade090.py | 2 +- test/pacman/tests/xfercommand001.py | 2 +- test/pacman/util.py | 17 ++++++++--------- 46 files changed, 87 insertions(+), 76 deletions(-) -- 1.8.4