From e277fa444488df7401d4d8d2ca192befe25a8b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 22 Sep 2022 09:31:10 +0700 Subject: [PATCH] mypaint: fix build with Python 3.11 --- srcpkgs/mypaint/patches/python-3.11.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 srcpkgs/mypaint/patches/python-3.11.patch diff --git a/srcpkgs/mypaint/patches/python-3.11.patch b/srcpkgs/mypaint/patches/python-3.11.patch new file mode 100644 index 00000000000..7a36ea63310 --- /dev/null +++ b/srcpkgs/mypaint/patches/python-3.11.patch @@ -0,0 +1,11 @@ +--- a/setup.py ++++ b/setup.py +@@ -632,7 +632,7 @@ class InstallScripts (install_scripts): + self.announce("installing %s as %s" % (src, targ_basename), level=2) + if self.dry_run: + return [] +- with open(src, "rU") as in_fp: ++ with open(src, "r") as in_fp: + with open(targ, "w") as out_fp: + line = in_fp.readline().rstrip() + if line.startswith("#!"):