mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix format_int
This commit is contained in:
1 parent
4d53c7cb27
commit
8e85234134
1 file changed
+3
-7
@@ -513,13 +513,9 @@ impl FormatSpec {
|
||||
Some(_) | None => Err("%c arg not in range(0x110000)"),
|
||||
},
|
||||
},
|
||||
Some(FormatType::GeneralFormatUpper) => {
|
||||
Err("Unknown format code 'G' for object of type 'int'")
|
||||
}
|
||||
Some(FormatType::GeneralFormatLower) => {
|
||||
Err("Unknown format code 'g' for object of type 'int'")
|
||||
}
|
||||
Some(FormatType::FixedPointUpper)
|
||||
Some(FormatType::GeneralFormatUpper)
|
||||
| Some(FormatType::GeneralFormatLower)
|
||||
| Some(FormatType::FixedPointUpper)
|
||||
| Some(FormatType::FixedPointLower)
|
||||
| Some(FormatType::ExponentUpper)
|
||||
| Some(FormatType::ExponentLower)
|
||||
|
||||
Reference in new issue
Block a user