Skip to content

Commit 9c80367

Browse files
committed
Avoid charged terminology
1 parent 3eec508 commit 9c80367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Lib/_pyrepl/_module_completer.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"xml.parsers.expat": ["errors", "model"],
3131
}
3232

33-
AUTO_IMPORT_BLACKLIST = {
33+
AUTO_IMPORT_DENYLIST = {
3434
# Standard library modules/submodules that have import side effects
3535
# and must not be automatically imported to complete attributes
3636
re.compile(r"antigravity"), # Calls webbrowser.open
@@ -263,7 +263,7 @@ def global_cache(self) -> list[pkgutil.ModuleInfo]:
263263
return self._global_cache
264264

265265
def _maybe_import_module(self, fqname: str) -> ModuleType | None:
266-
if any(pattern.fullmatch(fqname) for pattern in AUTO_IMPORT_BLACKLIST):
266+
if any(pattern.fullmatch(fqname) for pattern in AUTO_IMPORT_DENYLIST):
267267
# Special-cased modules with known import side-effects
268268
return None
269269
root = fqname.split(".")[0]

0 commit comments

Comments
 (0)