Fix reference in code.rst (#117615)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Anita Hammer 2024-04-07 23:58:57 +01:00 committed by GitHub
parent 375425abd1
commit fd3679025d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,7 @@ build applications which provide an interactive interpreter prompt.
the :meth:`InteractiveConsole.raw_input` method, if provided. If *local* is the :meth:`InteractiveConsole.raw_input` method, if provided. If *local* is
provided, it is passed to the :class:`InteractiveConsole` constructor for provided, it is passed to the :class:`InteractiveConsole` constructor for
use as the default namespace for the interpreter loop. If *local_exit* is provided, use as the default namespace for the interpreter loop. If *local_exit* is provided,
it is passed to the :class:`InteractiveConsole` constructor. The :meth:`interact` it is passed to the :class:`InteractiveConsole` constructor. The :meth:`~InteractiveConsole.interact`
method of the instance is then run with *banner* and *exitmsg* passed as the method of the instance is then run with *banner* and *exitmsg* passed as the
banner and exit message to use, if provided. The console object is discarded banner and exit message to use, if provided. The console object is discarded
after use. after use.