Skip to content

Commit

Permalink
pythongh-67041: Allow to distinguish between empty and not defined UR…
Browse files Browse the repository at this point in the history
…I components

Changes in the urllib.parse module:

* Add option allow_none in urlparse(), urlsplit() and urldefrag(). If
  it is true, represent not defined components as None instead of an
  empty string.
* Add option keep_empty in urlunparse() and urlunsplit(). If it is
  true, keep empty non-None components in the resulting string.
* Add option keep_empty in the geturl() method of DefragResult,
  SplitResult, ParseResult and the corresponding bytes counterparts.
  • Loading branch information
serhiy-storchaka committed Aug 31, 2024
1 parent fc897fc commit a60c9be
Show file tree
Hide file tree
Showing 2 changed files with 335 additions and 236 deletions.
Loading

0 comments on commit a60c9be

Please sign in to comment.