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 bfc58f9 commit 0a1999aCopy full SHA for 0a1999a
vm/src/stdlib/os.rs
@@ -1109,12 +1109,8 @@ fn os_chmod(
1109
Ok(())
1110
}
1111
1112
-fn os_fspath(path: PyPathLike, vm: &VirtualMachine) -> PyResult {
1113
- Ok(output_by_mode(
1114
- path.path.to_str().unwrap().to_owned(),
1115
- path.mode,
1116
- vm,
1117
- ))
+fn os_fspath(path: PyPathLike, vm: &VirtualMachine) -> PyObjectRef {
+ output_by_mode(path.path.to_str().unwrap().to_owned(), path.mode, vm)
1118
1119
1120
fn os_rename(src: PyPathLike, dst: PyPathLike, vm: &VirtualMachine) -> PyResult<()> {
0 commit comments