Skip to content

Commit 5d97735

Browse files
committed
Minor patch cleanups.
1 parent 53a1ec2 commit 5d97735

File tree

1 file changed

+5
-44
lines changed

1 file changed

+5
-44
lines changed

patch/Python/Python.patch

Lines changed: 5 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ index 69670d9d7f..8287267e64 100644
662662
return f'{userbase}/lib/python{version[0]}.{version[1]}/site-packages'
663663

664664
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
665-
index 7ae8df154b..4c3121de39 100644
665+
index 7ae8df154b..08899c9921 100644
666666
--- a/Lib/subprocess.py
667667
+++ b/Lib/subprocess.py
668668
@@ -74,8 +74,8 @@
@@ -676,15 +676,6 @@ index 7ae8df154b..4c3121de39 100644
676676

677677
if _mswindows:
678678
import _winapi
679-
@@ -1921,6 +1921,8 @@
680-
outside of the local scope (nor can any methods it calls).
681-
682-
"""
683-
+ if _waitpid is None:
684-
+ _waitpid = os.waitpid
685-
if self.returncode is None:
686-
if not self._waitpid_lock.acquire(False):
687-
# Something else is busy calling waitpid. Don't allow two
688679
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
689680
index ebe3711827..6d20f3c2d2 100644
690681
--- a/Lib/sysconfig.py
@@ -1055,18 +1046,6 @@ index 71926a5432..2918759262 100644
10551046
class UnixSysLogHandlerTest(SysLogHandlerTest):
10561047

10571048
"""Test for SysLogHandler with Unix sockets."""
1058-
diff --git a/Lib/test/test_mailcap.py b/Lib/test/test_mailcap.py
1059-
index 8185f4a780..510ab8d3dd 100644
1060-
--- a/Lib/test/test_mailcap.py
1061-
+++ b/Lib/test/test_mailcap.py
1062-
@@ -223,7 +223,6 @@
1063-
]
1064-
self._run_cases(cases)
1065-
1066-
- @unittest.skipUnless(os.name == "posix", "Requires 'test' command on system")
1067-
@unittest.skipIf(sys.platform == "vxworks", "'test' command is not supported on VxWorks")
1068-
@unittest.skipUnless(
1069-
test.support.has_subprocess_support,
10701049
diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
10711050
index aae86cc257..bb48a85517 100644
10721051
--- a/Lib/test/test_marshal.py
@@ -1179,7 +1158,7 @@ index ae25ef5588..8f2b1ffa69 100644
11791158
self.assertRaises(OSError, posix.sched_get_priority_max, -23)
11801159

11811160
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
1182-
index a2c4ab5081..eb427dfd72 100644
1161+
index a2c4ab5081..265b5618df 100644
11831162
--- a/Lib/test/test_shutil.py
11841163
+++ b/Lib/test/test_shutil.py
11851164
@@ -1776,6 +1776,8 @@
@@ -1195,7 +1174,7 @@ index a2c4ab5081..eb427dfd72 100644
11951174
self.assertGreaterEqual(size.lines, 0)
11961175

11971176
@unittest.skipUnless(os.isatty(sys.__stdout__.fileno()), "not on tty")
1198-
+ @unittest.skipUnless(os.allows_subprocesses, 'Test requires support for subprocesses.')
1177+
+ @unittest.skipUnless(support.has_subprocess_support, 'Test requires support for subprocesses.')
11991178
@unittest.skipUnless(hasattr(os, 'get_terminal_size'),
12001179
'need os.get_terminal_size()')
12011180
def test_stty_match(self):
@@ -3594,7 +3573,7 @@ index d74fb6deac..249b391d71 100755
35943573
| amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
35953574
| aos* | aros* | cloudabi* | sortix* | twizzler* \
35963575
diff --git a/configure b/configure
3597-
index 078bb5bef1..107dccb7a5 100755
3576+
index 078bb5bef1..3bb80ee5bc 100755
35983577
--- a/configure
35993578
+++ b/configure
36003579
@@ -3820,6 +3820,15 @@
@@ -3690,17 +3669,8 @@ index 078bb5bef1..107dccb7a5 100755
36903669
*)
36913670
# use dynload_shlib.c and dlopen() if we have it; otherwise stub
36923671
# out any dynamic loading
3693-
@@ -26543,7 +26584,7 @@
3694-
$as_echo "$as_me: creating Modules/Setup.local" >&6;}
3695-
if test ! -f Modules/Setup.local
3696-
then
3697-
- echo "# Edit this file for local setup changes" >Modules/Setup.local
3698-
+ echo "# Edit this file for local setup changes" >Modules/Setup.local
3699-
fi
3700-
3701-
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating Makefile" >&5
37023672
diff --git a/configure.ac b/configure.ac
3703-
index 09f3f902a6..271fd4be6d 100644
3673+
index 09f3f902a6..b3bab951eb 100644
37043674
--- a/configure.ac
37053675
+++ b/configure.ac
37063676
@@ -545,6 +545,15 @@
@@ -3793,15 +3763,6 @@ index 09f3f902a6..271fd4be6d 100644
37933763
*)
37943764
# use dynload_shlib.c and dlopen() if we have it; otherwise stub
37953765
# out any dynamic loading
3796-
@@ -7049,7 +7087,7 @@
3797-
AC_MSG_NOTICE([creating Modules/Setup.local])
3798-
if test ! -f Modules/Setup.local
3799-
then
3800-
- echo "# Edit this file for local setup changes" >Modules/Setup.local
3801-
+ echo "# Edit this file for local setup changes" >Modules/Setup.local
3802-
fi
3803-
3804-
AC_MSG_NOTICE([creating Makefile])
38053766
--- /dev/null
38063767
+++ b/iOS/Info.plist
38073768
@@ -0,0 +1,20 @@

0 commit comments

Comments
 (0)