cformat.rs: s/string/bytes/ in byte formatting error messages

This commit is contained in:
Daniel Watkins
2021-10-28 16:45:33 -04:00
parent 3e19da8331
commit 8594a656c7

View File

@@ -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)
}