(&self, vm: &VirtualMachine)
| 118 | |
| 119 | #[cfg(windows)] |
| 120 | pub fn to_wide_cstring(&self, vm: &VirtualMachine) -> PyResult<widestring::WideCString> { |
| 121 | widestring::WideCString::from_os_str(self.as_os_str(vm)?) |
| 122 | .map_err(|err| err.into_pyexception(vm)) |
| 123 | } |
| 124 | |
| 125 | pub fn bytes_as_os_str<'a>(b: &'a [u8], vm: &VirtualMachine) -> PyResult<&'a std::ffi::OsStr> { |
| 126 | rustpython_common::os::bytes_as_os_str(b) |
no test coverage detected