From aec2c0efc36c2a848abee3c9a60d3a68ff03a65c Mon Sep 17 00:00:00 2001 From: Will Kahn-Greene Date: Sat, 21 Jan 2023 22:15:02 -0500 Subject: [PATCH] Switch union to | --- docs/clean.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/clean.rst b/docs/clean.rst index 43c81bb8..800cbdcf 100644 --- a/docs/clean.rst +++ b/docs/clean.rst @@ -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( ... 'allowed protocol', - ... protocols=my_protocols + ... protocols=bleach.ALLOWED_PROTOCOLS | {'smb'} ... ) 'allowed protocol'