diff --git a/newsfragments/2407.feature.rst b/newsfragments/2407.feature.rst index be176d35de..a36ff69173 100644 --- a/newsfragments/2407.feature.rst +++ b/newsfragments/2407.feature.rst @@ -1,4 +1,4 @@ -Added the ``trio.__main__`` module. This module runs a modifed Python REPL that +Added the ``trio.__main__`` module. This module runs a modified Python REPL that supports directly awaiting Trio-based awaitables. It can be invoked by running ``python -m trio`` at the command line. diff --git a/trio/__main__.py b/trio/__main__.py index ce372c5d14..2804018c1b 100644 --- a/trio/__main__.py +++ b/trio/__main__.py @@ -86,7 +86,7 @@ async def main(repl_locals): if __name__ == "__main__": with contextlib.suppress(ModuleNotFoundError): - import readline + pass repl_locals = {"trio": trio} for key in {