File: python3.patch

package info (click to toggle)
pbbam 2.1.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,060 kB
  • sloc: cpp: 59,614; xml: 2,908; ansic: 799; sh: 275; python: 203; makefile: 187
file content (27 lines) | stat: -rw-r--r-- 932 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Author: Andreas Tille <tille@debian.org>
Last-Update: Sun, 04 Aug 2019 09:15:35 +0200
Description: Use Python3 in build time test suite

--- a/tests/scripts/generate_data.py
+++ b/tests/scripts/generate_data.py
@@ -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