python3
authorDebian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Sun, 4 Aug 2019 19:16:32 +0000 (20:16 +0100)
committerAndreas Tille <tille@debian.org>
Sun, 4 Aug 2019 19:16:32 +0000 (20:16 +0100)
Gbp-Pq: Name python3.patch

meson.build
tests/scripts/generate_data.py

index e248ac82b46279a2e10770cfca2d168dbaf9c017..cd87bf952ac5c3a50ecd1b0f7ee39a220fc9f0d4 100644 (file)
@@ -80,7 +80,7 @@ subdir('src')
 
 if not meson.is_subproject()
   if get_option('build-tools') or get_option('tests')
-    pbbam_python = find_program('python')
+    pbbam_python = find_program('python3')
 
     if get_option('tests')
       pbbam_clang_formatter = find_program('tools/check-formatting')
index 278acb5d2ad8ec642149e9f52555dc48c9f0c1bd..61c55842c611c1ea3db74d971c6fca6bf3bcc27b 100755 (executable)
@@ -1,7 +1,4 @@
-#!/usr/bin/env python
-
-from __future__ import print_function
-from __future__ import unicode_literals
+#!/usr/bin/python3
 
 import os, shutil, sys
 from io import StringIO
@@ -177,9 +174,9 @@ class TestDataGenerator:
         # else silent success
         if self.outputFiles or self.outputSymlinks:
             print('Generating test data in %s ' % self.generatedDataDir)
-            for file, func in self.outputFiles.items():
+            for file, func in list(self.outputFiles.items()):
                 func(file)
-            for link, func in self.outputSymlinks.items():
+            for link, func in list(self.outputSymlinks.items()):
                 func(link)
 
 # script entry point