findutils/findutils-4.5.14-python3.patch
2015-03-18 17:10:12 +01:00

34 lines
1.3 KiB
Diff

From 16bc7d519ed81bc9427a4e28dd74b45e1595f960 Mon Sep 17 00:00:00 2001
From: James Youngman <jay@gnu.org>
Date: Tue, 19 Aug 2014 08:29:49 +0100
Subject: [PATCH] Fix bug #42903: the print statement doesn't exist in Python
3.
* find/testsuite/checklists.py (main): Avoid using the print
statement as it is not compatible with Python 3. We use
sys.stdout.write, since our needs here are simple.
Upstream-commit: d56af2e2d5902c5f8a1ef99073d925c7d3b253d2
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
---
find/testsuite/checklists.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/find/testsuite/checklists.py b/find/testsuite/checklists.py
index 2a2fd10..63c9c16 100644
--- a/find/testsuite/checklists.py
+++ b/find/testsuite/checklists.py
@@ -77,7 +77,8 @@ def main(args):
dupes, configured = configured_file_names(args[1])
with TemporaryWorkingDirectory(args[2]):
actual = set(find_test_files(args[3:]))
- print '%d test files configured for find, %s files on-disk' % (len(configured), len(actual))
+ sys.stdout.write('%d test files configured for find, %s files on-disk'
+ % (len(configured), len(actual)))
problem_count = 0
problem_count += report_problems(dupes, report_dupe)
problem_count += report_problems(configured - actual, report_missing)
--
2.1.0