mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Default source_path
This commit is contained in:
@@ -67,7 +67,7 @@ impl BytecodeConst {
|
||||
compile::compile(
|
||||
&source,
|
||||
&mode.unwrap_or(compile::Mode::Exec),
|
||||
source_path.unwrap_or_else(|| "".to_string()),
|
||||
source_path.unwrap_or_else(|| "frozen".to_string()),
|
||||
)
|
||||
.map_err(|err| err_span!(source_lit, "Compile error: {}", err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user