Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Analysis/Ast/Impl/Modules/BuiltinsPythonModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public BuiltinsPythonModule(string moduleName, string filePath, IServiceContaine
public override IEnumerable<string> GetMemberNames() => base.GetMemberNames().Except(_hiddenNames).ToArray();

protected override string[] GetScrapeArguments(IPythonInterpreter interpreter)
=> !InstallPath.TryGetFile("scrape_module.py", out var sb) ? null : new [] { "-B", "-E", sb };
=> !InstallPath.TryGetFile("scrape_module.py", out var sb) ? null : new [] { "-W", "ignore", "-B", "-E", sb };

protected override void OnAnalysisComplete() {
SpecializeTypes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public CompiledBuiltinPythonModule(string moduleName, IPythonModule stub, IServi
: base(moduleName, ModuleType.CompiledBuiltin, MakeFakeFilePath(moduleName, services), stub, services) { }

protected override string[] GetScrapeArguments(IPythonInterpreter interpreter)
=> !InstallPath.TryGetFile("scrape_module.py", out var sm) ? null : new [] { "-B", "-E", sm, "-u8", Name };
=> !InstallPath.TryGetFile("scrape_module.py", out var sm) ? null : new [] { "-W", "ignore", "-B", "-E", sm, "-u8", Name };

private static string MakeFakeFilePath(string name, IServiceContainer services) {
var interpreterPath = services.GetService<IPythonInterpreter>().Configuration.InterpreterPath;
Expand Down
2 changes: 1 addition & 1 deletion src/Analysis/Ast/Impl/Modules/CompiledPythonModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public override string Documentation
=> GetMember("__doc__").TryGetConstant<string>(out var s) ? s : string.Empty;

protected virtual string[] GetScrapeArguments(IPythonInterpreter interpreter) {
var args = new List<string> { "-B", "-E" };
var args = new List<string> { "-W", "ignore", "-B", "-E" };

var mp = Interpreter.ModuleResolution.FindModule(FilePath);
if (string.IsNullOrEmpty(mp.FullName)) {
Expand Down