mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
graphics/mypaint: Fix build with python-3.11
This commit is contained in:
parent
476ef99027
commit
cea6be3b48
1 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,14 @@
|
||||||
--- setup.py.orig 2022-01-09 11:24:00 UTC
|
--- setup.py.orig 2020-05-29 15:18:55 UTC
|
||||||
+++ setup.py
|
+++ 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("#!"):
|
||||||
@@ -867,7 +867,6 @@ def get_ext_modules():
|
@@ -867,7 +867,6 @@ def get_ext_modules():
|
||||||
'-Wall',
|
'-Wall',
|
||||||
'-Wno-sign-compare',
|
'-Wno-sign-compare',
|
||||||
|
|
Loading…
Add table
Reference in a new issue