bpo-41521: Replace denylist with blocklist is http.cookiejar doc (GH-21826)

The http.cookiejar module has is_blocked() and blocked_domains()
methods, so "blocklist" term sounds better than "denylist" in this
module.

Replace also denylisted with denied in test___all__.
This commit is contained in:
Victor Stinner 2020-08-13 19:20:28 +02:00 committed by GitHub
parent c818b15fa5
commit 20ae565bd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -85,13 +85,13 @@ class AllTest(unittest.TestCase):
lib_dir = os.path.dirname(os.path.dirname(__file__))
for path, modname in self.walk_modules(lib_dir, ""):
m = modname
denylisted = False
denied = False
while m:
if m in denylist:
denylisted = True
denied = True
break
m = m.rpartition('.')[0]
if denylisted:
if denied:
continue
if support.verbose:
print(modname)