##// END OF EJS Templates
rust-cpython: use PyList.insert() instead of .insert_item()...
Yuya Nishihara -
r44701:06df075b default
parent child Browse files
Show More
@@ -33,7 +33,7 b' fn collect_pybytes_list<P: AsRef<HgPath>'
33 let list = PyList::new(py, &[]);
33 let list = PyList::new(py, &[]);
34
34
35 for (i, path) in collection.iter().enumerate() {
35 for (i, path) in collection.iter().enumerate() {
36 list.insert_item(
36 list.insert(
37 py,
37 py,
38 i,
38 i,
39 PyBytes::new(py, path.as_ref().as_bytes()).into_object(),
39 PyBytes::new(py, path.as_ref().as_bytes()).into_object(),
General Comments 0
You need to be logged in to leave comments. Login now