Skip to content

Commit

Permalink
Switch union to |
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Jan 22, 2023
1 parent 16795c5 commit aec2c0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/clean.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,9 @@ This adds smb to the Bleach-specified set of allowed protocols:

>>> import bleach

>>> my_protocols = bleach.ALLOWED_PROTOCOLS.union({'smb'})
>>> bleach.clean(
... '<a href="smb://more_text">allowed protocol</a>',
... protocols=my_protocols
... protocols=bleach.ALLOWED_PROTOCOLS | {'smb'}
... )
'<a href="smb://more_text">allowed protocol</a>'

Expand Down

0 comments on commit aec2c0e

Please sign in to comment.