From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 5 Nov 2018 22:46:42 +0000 (-0800) Subject: [Docs] Fix required version of an example of importlib (GH-10118) X-Git-Tag: v3.7.2rc1~186 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91a19c923c83471f305e64ca021bee2e9171965e;p=thirdparty%2FPython%2Fcpython.git [Docs] Fix required version of an example of importlib (GH-10118) ยง31.5.6.3. Importing a source file directly: `module_from_spec` is new in Python 3.5. (cherry picked from commit 16c8a53490a22bd4fcde2efaf4694dd06ded882b) Co-authored-by: E Kawashima --- 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