From 195efb38025c60991bea6d4d7fb9258261ea7742 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 19 Jul 2023 14:11:18 -0700 Subject: [PATCH] name_restrictions: Update disposable_email_domains usage. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘blocklist’ was added in 0.0.35 (with backwards compatibility for the old name), and type annotations were added in 0.0.91 (with only the new name). Signed-off-by: Anders Kaseorg --- zerver/lib/name_restrictions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/lib/name_restrictions.py b/zerver/lib/name_restrictions.py index 557101eb9c..c63da7de50 100644 --- a/zerver/lib/name_restrictions.py +++ b/zerver/lib/name_restrictions.py @@ -1,4 +1,4 @@ -from disposable_email_domains import blacklist +from disposable_email_domains import blocklist from django.conf import settings @@ -361,7 +361,7 @@ GENERIC_RESERVED_SUBDOMAINS = { "xoxo", } -DISPOSABLE_DOMAINS = set(blacklist) +DISPOSABLE_DOMAINS = set(blocklist) WHITELISTED_EMAIL_DOMAINS = { # Controlled by https://www.abine.com; more legitimate than most