From df22756c62b7d76acc5b23972a94d83e6e889dc0 Mon Sep 17 00:00:00 2001 From: CoolCat467 <52022020+CoolCat467@users.noreply.github.com> Date: Tue, 31 Oct 2023 15:34:09 -0500 Subject: [PATCH] Fix unused import and spelling --- newsfragments/2407.feature.rst | 2 +- trio/__main__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {