Skip to content

Commit 5d9b65d

Browse files
goharattiqwillkg
authored andcommitted
doc: update docs strings
1 parent 3aeed21 commit 5d9b65d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bleach/sanitizer.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"acronym": ["title"],
3535
}
3636

37-
#: List of allowed protocols
37+
#: Set of allowed protocols
3838
ALLOWED_PROTOCOLS = frozenset(("http", "https", "mailto"))
3939

4040
#: Invisible characters--0 to and including 31 except 9 (tab), 10 (lf), and 13 (cr)
@@ -101,7 +101,7 @@ def __init__(
101101
:arg dict attributes: allowed attributes; can be a callable, list or dict;
102102
defaults to ``bleach.sanitizer.ALLOWED_ATTRIBUTES``
103103
104-
:arg list protocols: allowed list of protocols for links; defaults
104+
:arg set protocols: set of allowed protocols for links; defaults
105105
to ``bleach.sanitizer.ALLOWED_PROTOCOLS``
106106
107107
:arg bool strip: whether or not to strip disallowed elements
@@ -279,7 +279,7 @@ def __init__(
279279
:arg dict attributes: allowed attributes; can be a callable, list or dict;
280280
defaults to ``bleach.sanitizer.ALLOWED_ATTRIBUTES``
281281
282-
:arg list allowed_protocols: allowed list of protocols for links; defaults
282+
:arg set allowed_protocols: set of allowed protocols for links; defaults
283283
to ``bleach.sanitizer.ALLOWED_PROTOCOLS``
284284
285285
:arg attr_val_is_uri: set of attributes that have URI values
@@ -476,7 +476,7 @@ def sanitize_uri_value(self, value, allowed_protocols):
476476
"""Checks a uri value to see if it's allowed
477477
478478
:arg value: the uri value to sanitize
479-
:arg allowed_protocols: list of allowed protocols
479+
:arg allowed_protocols: set of allowed protocols
480480
481481
:returns: allowed value or None
482482

0 commit comments

Comments
 (0)