mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-17 18:15:25 +00:00
Fix __repr__
, __qualname__
(#2977)
This commit is contained in:
parent
3289b9ccb4
commit
ca37219aff
1 changed files with 2 additions and 2 deletions
|
@ -1021,8 +1021,8 @@ impl Compiler {
|
|||
};
|
||||
|
||||
let qualified_name = self.create_qualified_name(name, "");
|
||||
let old_qualified_path = self.current_qualified_path.take();
|
||||
self.current_qualified_path = Some(self.create_qualified_name(name, ".<locals>"));
|
||||
let old_qualified_path = self.current_qualified_path.replace(qualified_name.clone());
|
||||
self.current_qualified_path = Some(self.create_qualified_name("<locals>", ""));
|
||||
|
||||
let (body, doc_str) = get_doc(body);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue