Description: Use 2to3 to port from Python2 to Python3
Bug-Debian: https://bugs.debian.org/938431 
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 17 Dec 2019 21:03:13 +0100

--- a/RELEASE-NOTES.md
+++ b/RELEASE-NOTES.md
@@ -110,7 +110,7 @@ Generation 3    Sep 25 2018 09:39:08
     branch: origin/master
     commit: 932839ff124ff3b0dd3070914fb1c5beec69bf32
 
-guix environment -C guix --ad-hoc gcc gdb bash ld-wrapper ldc which python git
+guix environment -C guix --ad-hoc gcc gdb bash ld-wrapper ldc which python3 git
 make clean && make -j 16 && make check
 
 for x in `ldd bin/sambamba|cut -d ' ' -f 3` ; do realpath $x ; done
--- a/gen_ldc_version_info.py
+++ b/gen_ldc_version_info.py
@@ -18,7 +18,7 @@ if not match:
     sys.exit("ERROR: failed to generated LDC version information")
 
 print("module utils.ldc_version_info_;")
-for component, version in match.groupdict().items():
+for component, version in list(match.groupdict().items()):
     if version is None:
         version = "version not available"
     print("immutable {0}_VERSION_STRING = \"{1}\";".format(component, version))
--- a/test/test_depth.py
+++ b/test/test_depth.py
@@ -97,14 +97,14 @@ def compareResults(report, expected, pre
                 fn_expected = prefix + "expected_report.txt"
                 saveRegionReport(report, fn_failed)
                 saveRegionReport(expected, fn_expected)
-                print 'TEST FAILURE'
-                print "results saved to " + fn_expected + " and " + fn_failed
-            print "different results:"
-            print "expected: ", expected_entry
-            print "got: ", entry
+                print('TEST FAILURE')
+                print("results saved to " + fn_expected + " and " + fn_failed)
+            print("different results:")
+            print("expected: ", expected_entry)
+            print("got: ", entry)
             n_wrong += 1
             if n_wrong >= 10:
-                print "10 or more errors detected, exiting"
+                print("10 or more errors detected, exiting")
                 break
         else:
             n_correct += 1
