[Python-checkins] Fix documentation in code.py (GH-17988)

Miss Islington (bot) webhook-mailer at python.org
Tue Jan 14 15:15:01 EST 2020


https://github.com/python/cpython/commit/5c08bfe8671a9c8830a4301a7ed2f2468174a131
commit: 5c08bfe8671a9c8830a4301a7ed2f2468174a131
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-01-14T12:14:56-08:00
summary:

Fix documentation in code.py (GH-17988)

(cherry picked from commit b4cdb3f60e71888d7f3d4e0d40cb31e968ea160c)

Co-authored-by: Kyle Pollina <kylepollina at protonmail.com>

files:
M Doc/library/code.rst
M Lib/code.py

diff --git a/Doc/library/code.rst b/Doc/library/code.rst
index e2c47bab5a0b9..6708079f778c1 100644
--- a/Doc/library/code.rst
+++ b/Doc/library/code.rst
@@ -76,7 +76,7 @@ Interactive Interpreter Objects
 
    Compile and run some source in the interpreter. Arguments are the same as for
    :func:`compile_command`; the default for *filename* is ``'<input>'``, and for
-   *symbol* is ``'single'``.  One several things can happen:
+   *symbol* is ``'single'``.  One of several things can happen:
 
    * The input is incorrect; :func:`compile_command` raised an exception
      (:exc:`SyntaxError` or :exc:`OverflowError`).  A syntax traceback will be
diff --git a/Lib/code.py b/Lib/code.py
index d8106ae612c4b..76000f8c8b2c1 100644
--- a/Lib/code.py
+++ b/Lib/code.py
@@ -40,7 +40,7 @@ def runsource(self, source, filename="<input>", symbol="single"):
 
         Arguments are as for compile_command().
 
-        One several things can happen:
+        One of several things can happen:
 
         1) The input is incorrect; compile_command() raised an
         exception (SyntaxError or OverflowError).  A syntax traceback



More information about the Python-checkins mailing list