Skip to content

Commit a337a6c

Browse files
committed
unix: remove __APPLE__ replacement in Modules/readline.c
It looks like CPython removed all but 1 instance of __APPLE__ in https://bugs.python.org/issue38634 as part of better supporting libedit. These patches made it to 3.8 so we should no longer need this hack.
1 parent 48443fd commit a337a6c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cpython-unix/build-cpython.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -544,13 +544,6 @@ index 1e74f997b0..56a36e26e6 100644
544544
rl_cleanup_after_signal();
545545
EOF
546546

547-
# Modules/readline.c has various libedit conditions behind an
548-
# ``#ifdef __APPLE__`` instead of a more specific feature flag. All
549-
# occurrences of __APPLE__ in that file are related to libedit. So we
550-
# just replace the content.
551-
sed s/__APPLE__/USE_LIBEDIT/g Modules/readline-libedit.c > tmp
552-
mv tmp Modules/readline-libedit.c
553-
554547
# iOS doesn't have system(). Teach posixmodule.c about that.
555548
if [ "${PYTHON_MAJMIN_VERSION}" != "3.8" ]; then
556549
patch -p1 <<EOF

0 commit comments

Comments
 (0)