Skip to content

Commit 89e6101

Browse files
rst fixes
1 parent e2f454a commit 89e6101

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

Doc/library/urllib.parse.rst

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ or on combining URL components into a URL string.
176176
now raise :exc:`ValueError`.
177177

178178
.. versionchanged:: 3.11
179-
Values for `url` and `scheme` other than strings or bytes raise
180-
:exc:`TypeError` if true or emit `DeprecationWarning` if false (to be
181-
changed to `TypeError` in future versions of Python).
179+
Values for ``url`` and ``scheme`` other than strings or bytes raise
180+
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
181+
changed to :exc:`TypeError` in future versions of Python).
182182

183183

184184
.. function:: parse_qs(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&')
@@ -270,9 +270,9 @@ or on combining URL components into a URL string.
270270
separator key, with ``&`` as the default separator.
271271

272272
.. versionchanged:: 3.11
273-
Values for `qs` and `separator` other than strings or bytes raise
274-
:exc:`TypeError` if true or emit `DeprecationWarning` if false (to be
275-
changed to `TypeError` in future versions of Python).
273+
Values for ``qs`` and ``separator`` other than strings or bytes raise
274+
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
275+
changed to :exc:`TypeError` in future versions of Python).
276276

277277

278278
.. function:: urlunparse(parts)
@@ -284,9 +284,9 @@ or on combining URL components into a URL string.
284284
states that these are equivalent).
285285

286286
.. versionchanged:: 3.11
287-
Items in `parts` other than strings or bytes raise
288-
:exc:`TypeError` if true or emit `DeprecationWarning` if false (to be
289-
changed to `TypeError` in future versions of Python).
287+
Items in ``parts`` other than strings or bytes raise
288+
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
289+
changed to :exc:`TypeError` in future versions of Python).
290290

291291

292292
.. function:: urlsplit(urlstring, scheme='', allow_fragments=True)
@@ -353,9 +353,9 @@ or on combining URL components into a URL string.
353353
ASCII newline and tab characters are stripped from the URL.
354354

355355
.. versionchanged:: 3.11
356-
Values for the url argument and `scheme` other than strings or bytes raise
357-
:exc:`TypeError` if true or emit `DeprecationWarning` if false (to be
358-
changed to `TypeError` in future versions of Python).
356+
Values for the url argument and ``scheme`` other than strings or bytes raise
357+
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
358+
changed to :exc:`TypeError` in future versions of Python).
359359

360360

361361
.. _WHATWG spec: https://url.spec.whatwg.org/#concept-basic-url-parser
@@ -369,9 +369,9 @@ or on combining URL components into a URL string.
369369
with an empty query; the RFC states that these are equivalent).
370370

371371
.. versionchanged:: 3.11
372-
Items in `parts` other than strings or bytes raise
373-
:exc:`TypeError` if true or emit `DeprecationWarning` if false (to be
374-
changed to `TypeError` in future versions of Python).
372+
Items in ``parts`` other than strings or bytes raise
373+
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
374+
changed to :exc:`TypeError` in future versions of Python).
375375

376376

377377
.. function:: urljoin(base, url, allow_fragments=True)
@@ -408,9 +408,9 @@ or on combining URL components into a URL string.
408408
Behavior updated to match the semantics defined in :rfc:`3986`.
409409

410410
.. versionchanged:: 3.11
411-
Values for `base` and `url` other than strings or bytes raise
412-
:exc:`TypeError` if true or emit `DeprecationWarning` if false (to be
413-
changed to `TypeError` in future versions of Python).
411+
Values for ``base`` and ``url`` other than strings or bytes raise
412+
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
413+
changed to :exc:`TypeError` in future versions of Python).
414414

415415

416416
.. function:: urldefrag(url)
@@ -439,8 +439,8 @@ or on combining URL components into a URL string.
439439

440440
.. versionchanged:: 3.11
441441
Values other than strings or bytes raise
442-
:exc:`TypeError` if true or emit `DeprecationWarning` if false (to be
443-
changed to `TypeError` in future versions of Python).
442+
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
443+
changed to :exc:`TypeError` in future versions of Python).
444444

445445
.. function:: unwrap(url)
446446

0 commit comments

Comments
 (0)