From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 14 May 2021 14:26:40 +0000 (-0700) Subject: Update doc as relative import can be used with star import (GH-25667) (GH-26121) X-Git-Tag: v3.10.0b2~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8940916a026f4231c907d6be1b0ba1cb9d034ee4;p=thirdparty%2FPython%2Fcpython.git Update doc as relative import can be used with star import (GH-25667) (GH-26121) (cherry picked from commit 3d4b5f1019123a7d74801500eb18ec8fa12136bc) Co-authored-by: Saiyang Gou Co-authored-by: Saiyang Gou --- diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 3aba2700048b..bb1209dfc33b 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -734,7 +734,7 @@ The :keyword:`!import` statement : ("," `identifier` ["as" `identifier`])* : | "from" `relative_module` "import" "(" `identifier` ["as" `identifier`] : ("," `identifier` ["as" `identifier`])* [","] ")" - : | "from" `module` "import" "*" + : | "from" `relative_module` "import" "*" module: (`identifier` ".")* `identifier` relative_module: "."* `module` | "."+