(&self, vm: &VirtualMachine)
| 638 | |
| 639 | #[pymethod] |
| 640 | fn __reduce__(&self, vm: &VirtualMachine) -> (PyTypeRef, PyTupleRef, Option<PyDictRef>) { |
| 641 | let bytes = PyBytes::from(self.borrow_buf().to_vec()).to_pyobject(vm); |
| 642 | ( |
| 643 | self.class().to_owned(), |
| 644 | PyTuple::new_ref(vec![bytes], &vm.ctx), |
| 645 | self.as_object().dict(), |
| 646 | ) |
| 647 | } |
| 648 | } |
| 649 | |
| 650 | #[pyclass] |
no test coverage detected