mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-23 04:55:25 +00:00
Remove incorrect EmptyExpression in parse_formatted_value
This commit is contained in:
parent
515dceb07b
commit
84dff79ddc
2 changed files with 2 additions and 6 deletions
|
@ -358,11 +358,7 @@ impl<'a> StringParser<'a> {
|
|||
}
|
||||
}
|
||||
}
|
||||
Err(if expression.trim().is_empty() {
|
||||
FStringError::new(EmptyExpression, self.get_pos()).into()
|
||||
} else {
|
||||
FStringError::new(UnclosedLbrace, self.get_pos()).into()
|
||||
})
|
||||
Err(FStringError::new(UnclosedLbrace, self.get_pos()).into())
|
||||
}
|
||||
|
||||
fn parse_spec(&mut self, nested: u8) -> Result<Vec<Expr>, LexicalError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue