Blame six-is-always-PY3-don-t-ask-for-it.patch

8a18628
From ab319d285ca88474ccbf941407abbdc7f24e6d42 Mon Sep 17 00:00:00 2001
8a18628
From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <fzatlouk@redhat.com>
8a18628
Date: Sun, 16 Jul 2023 11:36:00 +0200
8a18628
Subject: [PATCH] six is always PY3, don't ask for it
8a18628
8a18628
---
8a18628
 js/src/tests/lib/manifest.py | 5 +----
8a18628
 1 file changed, 1 insertion(+), 4 deletions(-)
8a18628
8a18628
diff --git a/js/src/tests/lib/manifest.py b/js/src/tests/lib/manifest.py
8a18628
index 79c42a2..cbc5d53 100644
8a18628
--- a/js/src/tests/lib/manifest.py
8a18628
+++ b/js/src/tests/lib/manifest.py
8a18628
@@ -460,10 +460,7 @@ def _parse_test_header(fullpath, testcase, xul_tester):
8a18628
     This looks a bit weird.  The reason is that it needs to be efficient, since
8a18628
     it has to be done on every test
8a18628
     """
8a18628
-    if six.PY3:
8a18628
-        fp = open(fullpath, encoding="utf-8")
8a18628
-    else:
8a18628
-        fp = open(fullpath)
8a18628
+    fp = open(fullpath, encoding="utf-8")
8a18628
     try:
8a18628
         buf = fp.read(512)
8a18628
     finally:
8a18628
-- 
8a18628
2.41.0
8a18628