summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaiyang Gou <gousaiyang@163.com>2021-05-14 05:37:19 (GMT)
committerGitHub <noreply@github.com>2021-05-14 05:37:19 (GMT)
commit3d4b5f1019123a7d74801500eb18ec8fa12136bc (patch)
treeced885c5c26ba5028fc2e368735c01422df6a88f
parent53c91ac5253bf1cb3cb20e1345e798a53f4c3517 (diff)
downloadcpython-3d4b5f1019123a7d74801500eb18ec8fa12136bc.zip
cpython-3d4b5f1019123a7d74801500eb18ec8fa12136bc.tar.gz
cpython-3d4b5f1019123a7d74801500eb18ec8fa12136bc.tar.bz2
Update doc as relative import can be used with star import (GH-25667)
-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` | "."+