summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-14 14:26:40 (GMT)
committerGitHub <noreply@github.com>2021-05-14 14:26:40 (GMT)
commit8940916a026f4231c907d6be1b0ba1cb9d034ee4 (patch)
tree687c52ac6cc80933debe68211eba5efae5f383df /Doc
parent5abc68101992043b08cd260053ea17fddeb62ab4 (diff)
downloadcpython-8940916a026f4231c907d6be1b0ba1cb9d034ee4.zip
cpython-8940916a026f4231c907d6be1b0ba1cb9d034ee4.tar.gz
cpython-8940916a026f4231c907d6be1b0ba1cb9d034ee4.tar.bz2
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 <gousaiyang@163.com> Co-authored-by: Saiyang Gou <gousaiyang@163.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/reference/simple_stmts.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index 3aba270..bb1209d 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` | "."+