diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-14 14:26:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 14:26:40 (GMT) |
commit | 8940916a026f4231c907d6be1b0ba1cb9d034ee4 (patch) | |
tree | 687c52ac6cc80933debe68211eba5efae5f383df /Doc | |
parent | 5abc68101992043b08cd260053ea17fddeb62ab4 (diff) | |
download | cpython-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.rst | 2 |
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` | "."+ |