Skip to content

Commit c1be034

Browse files
committed
1 parent 4c5070d commit c1be034

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
@@ -152,7 +152,7 @@ func putenv(self py.Object, args py.Tuple) (py.Object, error) {
152152
if err != nil {
153153
return nil, py.ExceptionNewf(py.TypeError, "Unable to parse string") // this will never execute
154154
}
155-
value := strings.ReplaceAll(_v, "'", "")
155+
value := _v[1 : len(_v)-1]
156156

157157
err = os.Setenv(key, value)
158158
if err != nil {

0 commit comments

Comments
 (0)