diff options
author | Victor Stinner <vstinner@python.org> | 2020-08-13 17:20:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-13 17:20:28 (GMT) |
commit | 20ae565bd2d79425d5567c001ed8f89848d7d907 (patch) | |
tree | 2e8399e0ce6c401bd9dc570113541291987020f2 /Lib/test | |
parent | c818b15fa59039de67022c29085d439fa5d3ef95 (diff) | |
download | cpython-20ae565bd2d79425d5567c001ed8f89848d7d907.zip cpython-20ae565bd2d79425d5567c001ed8f89848d7d907.tar.gz cpython-20ae565bd2d79425d5567c001ed8f89848d7d907.tar.bz2 |
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__.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test___all__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index c6ce648..15f42d2 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -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) |