summaryrefslogtreecommitdiff
path: root/media-sound/guitarix/files/guitarix-0.44.1-py3.11.patch
blob: f419c2ed7ce72417622e11c5a51aa12e71516fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From 39d7c21c4173eb0f121b1bbff439d9cf43331a00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= <hub@figuiere.net>
Date: Wed, 11 Jan 2023 18:55:36 -0500
Subject: [PATCH] waf: python 3.11 removed the 'U' open mode

Python3 deprecated it already by making this the default behaviour.
--- a/wscript
+++ b/wscript
@@ -537,7 +537,7 @@ def sub_file(task):
     dst_fname = task.outputs[0].abspath()
     lst = task.generator.sub_list
 
-    with open(src_fname, 'rU') as f:
+    with open(src_fname, 'r') as f:
         txt = f.read()
     for (key, val) in lst:
         re_pat = re.compile(key, re.M)
-- 
2.39.2