mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix compile_bytecode
This commit is contained in:
1 parent
2fafd409a9
commit
d59af76be5
1 file changed
+7
-1
@@ -191,7 +191,13 @@ impl CompilationSource {
|
||||
|
||||
let code = match code {
|
||||
Ok(code) => code,
|
||||
Err(_) if stem.starts_with("badsyntax_") => continue,
|
||||
Err(_)
|
||||
if stem.starts_with("badsyntax_")
|
||||
| parent.ends_with(".encoded_modules") =>
|
||||
{
|
||||
// TODO: handle with macro arg rather than hard-coded path
|
||||
continue;
|
||||
}
|
||||
Err(e) => return Err(e),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user