(
format: &FormatString,
dict: &PyObject,
vm: &VirtualMachine,
)
| 220 | } |
| 221 | |
| 222 | pub(crate) fn format_map( |
| 223 | format: &FormatString, |
| 224 | dict: &PyObject, |
| 225 | vm: &VirtualMachine, |
| 226 | ) -> PyResult<Wtf8Buf> { |
| 227 | format_internal(vm, format, &mut |field_type| match field_type { |
| 228 | FieldType::Auto | FieldType::Index(_) => { |
| 229 | Err(vm.new_value_error("Format string contains positional fields")) |
| 230 | } |
| 231 | FieldType::Keyword(keyword) => dict.get_item(&keyword, vm), |
| 232 | }) |
| 233 | } |
no test coverage detected