From 0b29e2f9fa139224da74be85de8f35e4f09c6bab Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 28 Dec 2025 23:08:46 +0300 Subject: [PATCH] init.py: Ignore 'readline.read_init_file() not implemented' PyPy doesn't implement the function and issues the warning. --- lib/python/init.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/python/init.py b/lib/python/init.py index da48080..bd1842c 100644 --- a/lib/python/init.py +++ b/lib/python/init.py @@ -15,6 +15,7 @@ def init(): import builtins import os import sys + import warnings # readline/pyreadline @@ -26,6 +27,9 @@ def init(): import readline initfile = os.environ.get('INPUTRC') \ or os.path.expanduser('~/.inputrc') + warnings.filterwarnings( + 'ignore', 'readline.read_init_file() not implemented', + category=UserWarning) readline.read_init_file(initfile) # if 'libedit' in readline.__doc__: -- 2.47.3