mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
c818b15fa5
commit
20ae565bd2
2 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue