We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e52c71 commit 43e2504Copy full SHA for 43e2504
vm/src/stdlib/os.rs
@@ -1131,12 +1131,8 @@ fn os_chmod(
1131
Ok(())
1132
}
1133
1134
-fn os_fspath(path: PyPathLike, vm: &VirtualMachine) -> PyResult {
1135
- Ok(output_by_mode(
1136
- path.path.to_str().unwrap().to_owned(),
1137
- path.mode,
1138
- vm,
1139
- ))
+fn os_fspath(path: PyPathLike, vm: &VirtualMachine) -> PyObjectRef {
+ output_by_mode(path.path.to_str().unwrap().to_owned(), path.mode, vm)
1140
1141
1142
fn os_rename(src: PyPathLike, dst: PyPathLike, vm: &VirtualMachine) -> PyResult<()> {
0 commit comments