Skip to content

Commit

Permalink
doc: update docs strings
Browse files Browse the repository at this point in the history
  • Loading branch information
goharattiq authored and willkg committed Feb 10, 2025
1 parent 3aeed21 commit 5d9b65d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bleach/sanitizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"acronym": ["title"],
}

#: List of allowed protocols
#: Set of allowed protocols
ALLOWED_PROTOCOLS = frozenset(("http", "https", "mailto"))

#: Invisible characters--0 to and including 31 except 9 (tab), 10 (lf), and 13 (cr)
Expand Down Expand Up @@ -101,7 +101,7 @@ def __init__(
:arg dict attributes: allowed attributes; can be a callable, list or dict;
defaults to ``bleach.sanitizer.ALLOWED_ATTRIBUTES``
:arg list protocols: allowed list of protocols for links; defaults
:arg set protocols: set of allowed protocols for links; defaults
to ``bleach.sanitizer.ALLOWED_PROTOCOLS``
:arg bool strip: whether or not to strip disallowed elements
Expand Down Expand Up @@ -279,7 +279,7 @@ def __init__(
:arg dict attributes: allowed attributes; can be a callable, list or dict;
defaults to ``bleach.sanitizer.ALLOWED_ATTRIBUTES``
:arg list allowed_protocols: allowed list of protocols for links; defaults
:arg set allowed_protocols: set of allowed protocols for links; defaults
to ``bleach.sanitizer.ALLOWED_PROTOCOLS``
:arg attr_val_is_uri: set of attributes that have URI values
Expand Down Expand Up @@ -476,7 +476,7 @@ def sanitize_uri_value(self, value, allowed_protocols):
"""Checks a uri value to see if it's allowed
:arg value: the uri value to sanitize
:arg allowed_protocols: list of allowed protocols
:arg allowed_protocols: set of allowed protocols
:returns: allowed value or None
Expand Down

0 comments on commit 5d9b65d

Please # to comment.