[Python-checkins] [Docs] Fix required version of an example of importlib (GH-10118)

Victor Stinner webhook-mailer at python.org
Mon Nov 5 17:41:28 EST 2018

commit: 16c8a53490a22bd4fcde2efaf4694dd06ded882b
branch: master
author: E Kawashima <e-kwsm at users.noreply.github.com>
committer: Victor Stinner <vstinner at redhat.com>
date: 2018-11-05T23:41:17+01:00

[Docs] Fix required version of an example of importlib (GH-10118)

§ Importing a source file directly: `module_from_spec` is new in Python 3.5.

M Doc/library/importlib.rst

diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index c6c7160a9d15..0bcfbb1c7263 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -1653,7 +1653,7 @@ Importing a source file directly
 To import a Python source file directly, use the following recipe
-(Python 3.4 and newer only)::
+(Python 3.5 and newer only)::
   import importlib.util
   import sys

More information about the Python-checkins mailing list