Skip to content

Commit 84fbc10

Browse files
glaukiol1sbinet
andcommitted
Update os/os.module.go
Co-authored-by: Sebastien Binet <[email protected]>
1 parent d9bf7e3 commit 84fbc10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

os/os.module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func getCwdb(self py.Object, args py.Tuple) (py.Object, error) {
138138
if err != nil {
139139
return nil, py.ExceptionNewf(py.OSError, "Unable to get current working directory.")
140140
}
141-
return py.Bytes([]byte(dir)), nil
141+
return py.Bytes(dir), nil
142142
}
143143

144144
// chdir changes the current working directory to the provided path.

0 commit comments

Comments
 (0)