mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-12 15:45:22 +00:00
Always insert None
at code_stack.constants
This commit is contained in:
parent
307bc46d74
commit
f5ce4a6cc3
1 changed files with 4 additions and 0 deletions
|
@ -1107,6 +1107,10 @@ impl Compiler {
|
|||
|
||||
let (doc_str, body) = split_doc(body);
|
||||
|
||||
self.current_codeinfo()
|
||||
.constants
|
||||
.insert_full(ConstantData::None);
|
||||
|
||||
self.compile_statements(body)?;
|
||||
|
||||
// Emit None at end:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue