Skip to content

Commit 4400c1f

Browse files
committed
Revert changes to table from pythonGH-29816
1 parent ad3ca17 commit 4400c1f

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

Doc/library/urllib.parse.rst

+25-24
Original file line numberDiff line numberDiff line change
@@ -104,30 +104,31 @@ or on combining URL components into a URL string.
104104
The return value is a :term:`named tuple`, which means that its items can
105105
be accessed by index or as named attributes, which are:
106106

107-
+------------------+-------+-------------------------+------------------------+
108-
| Attribute | Index | Value | Value if not present |
109-
+==================+=======+=========================+========================+
110-
| :attr:`scheme` | 0 | URL scheme specifier | *scheme* parameter |
111-
+------------------+-------+-------------------------+------------------------+
112-
| :attr:`netloc` | 1 | Network location part | empty string |
113-
+------------------+-------+-------------------------+------------------------+
114-
| :attr:`path` | 2 | Hierarchical path | empty string |
115-
+------------------+-------+-------------------------+------------------------+
116-
| :attr:`params` | 3 | No longer used | always an empty string |
117-
+------------------+-------+-------------------------+------------------------+
118-
| :attr:`query` | 4 | Query component | empty string |
119-
+------------------+-------+-------------------------+------------------------+
120-
| :attr:`fragment` | 5 | Fragment identifier | empty string |
121-
+------------------+-------+-------------------------+------------------------+
122-
| :attr:`username` | | User name | :const:`None` |
123-
+------------------+-------+-------------------------+------------------------+
124-
| :attr:`password` | | Password | :const:`None` |
125-
+------------------+-------+-------------------------+------------------------+
126-
| :attr:`hostname` | | Host name (lower case) | :const:`None` |
127-
+------------------+-------+-------------------------+------------------------+
128-
| :attr:`port` | | Port number as integer, | :const:`None` |
129-
| | | if present | |
130-
+------------------+-------+-------------------------+------------------------+
107+
+------------------+-------+--------------------------+----------------------+
108+
| Attribute | Index | Value | Value if not present |
109+
+==================+=======+==========================+======================+
110+
| :attr:`scheme` | 0 | URL scheme specifier | *scheme* parameter |
111+
+------------------+-------+--------------------------+----------------------+
112+
| :attr:`netloc` | 1 | Network location part | empty string |
113+
+------------------+-------+--------------------------+----------------------+
114+
| :attr:`path` | 2 | Hierarchical path | empty string |
115+
+------------------+-------+--------------------------+----------------------+
116+
| :attr:`params` | 3 | Parameters for last path | empty string |
117+
| | | element | |
118+
+------------------+-------+--------------------------+----------------------+
119+
| :attr:`query` | 4 | Query component | empty string |
120+
+------------------+-------+--------------------------+----------------------+
121+
| :attr:`fragment` | 5 | Fragment identifier | empty string |
122+
+------------------+-------+--------------------------+----------------------+
123+
| :attr:`username` | | User name | :const:`None` |
124+
+------------------+-------+--------------------------+----------------------+
125+
| :attr:`password` | | Password | :const:`None` |
126+
+------------------+-------+--------------------------+----------------------+
127+
| :attr:`hostname` | | Host name (lower case) | :const:`None` |
128+
+------------------+-------+--------------------------+----------------------+
129+
| :attr:`port` | | Port number as integer, | :const:`None` |
130+
| | | if present | |
131+
+------------------+-------+--------------------------+----------------------+
131132

132133
Reading the :attr:`port` attribute will raise a :exc:`ValueError` if
133134
an invalid port is specified in the URL. See section

0 commit comments

Comments
 (0)