mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 19:59:07 +00:00
Update python_util.rs
This commit is contained in:
parent
0875c7e5c9
commit
11cb46f4a4
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ fn which_python_from_toml() -> Option<String> {
|
|||
let f = File::open("pyproject.toml").ok()?;
|
||||
let mut reader = std::io::BufReader::new(f);
|
||||
let mut line = String::new();
|
||||
while reader.read_line(&mut line).is_ok() {
|
||||
while reader.read_line(&mut line).is_ok_and(|i| i > 0) {
|
||||
if line.starts_with("[tool.erg.python]") || line.starts_with("[tool.pylyzer.python]") {
|
||||
line.clear();
|
||||
reader.read_line(&mut line).ok()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue