mirror of
https://github.com/mtshiba/pylyzer.git
synced 2025-08-04 06:18:18 +00:00
Update deps & micro fix
This commit is contained in:
parent
e464e8dc79
commit
36427cb647
4 changed files with 22 additions and 19 deletions
|
@ -1402,7 +1402,10 @@ impl ASTConverter {
|
|||
self.convert_ident("__import__".to_string(), stmt.location),
|
||||
));
|
||||
// from . import foo ==> import "./foo"
|
||||
let cont = format!("\"{}\"", module.clone().unwrap_or(names[0].symbol.clone()));
|
||||
let cont = format!(
|
||||
"\"{}\"",
|
||||
module.clone().unwrap_or_else(|| names[0].symbol.clone())
|
||||
);
|
||||
let mod_name = Expr::Lit(Literal::new(Token::new(
|
||||
TokenKind::StrLit,
|
||||
cont,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue