mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
cformat.rs: s/string/bytes/ in byte formatting error messages
This commit is contained in:
@@ -684,7 +684,7 @@ impl CFormatBytes {
|
||||
Ok(result)
|
||||
} else {
|
||||
Err(vm.new_type_error(
|
||||
"not all arguments converted during string formatting".to_owned(),
|
||||
"not all arguments converted during bytes formatting".to_owned(),
|
||||
))
|
||||
};
|
||||
}
|
||||
@@ -740,8 +740,7 @@ impl CFormatBytes {
|
||||
|
||||
// check that all arguments were converted
|
||||
if value_iter.next().is_some() && !is_mapping {
|
||||
Err(vm
|
||||
.new_type_error("not all arguments converted during string formatting".to_owned()))
|
||||
Err(vm.new_type_error("not all arguments converted during bytes formatting".to_owned()))
|
||||
} else {
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user