Skip to content

Commit 58f4da0

Browse files
committed
Add _ios_support to auto import blacklist
1 parent a403b1c commit 58f4da0

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Lib/_pyrepl/_module_completer.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@
3333
AUTO_IMPORT_BLACKLIST = {
3434
# Standard library modules/submodules that have import side effects
3535
# and must not be automatically imported to complete attributes
36-
re.compile(r"antigravity"),
37-
re.compile(r"this"),
38-
re.compile(r"idlelib\..+"),
39-
re.compile(r"test\..+"),
40-
re.compile(r".+\.__main__"),
36+
re.compile(r"antigravity"), # Calls webbrowser.open
37+
re.compile(r"idlelib\..+"), # May open IDLE GUI
38+
re.compile(r"test\..+"), # Various side-effects
39+
re.compile(r"this"), # Prints to stdout
40+
re.compile(r"_ios_support"), # Spawns a subprocess
41+
re.compile(r".+\.__main__"), # Should not be imported
4142
}
4243

4344

0 commit comments

Comments
 (0)