Skip to content

Commit 6a013d8

Browse files
glaukiol1sbinet
andcommitted
Update os/os.module.go
Co-authored-by: Sebastien Binet <[email protected]>
1 parent 5beafd8 commit 6a013d8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

os/os.module.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,11 @@ func chdir(self py.Object, args py.Tuple) (py.Object, error) {
9797
// getenv returns the value of the environment variable key.
9898
// If no such environment variable exists and a default value was provided, that value is returned.
9999
func getenv(self py.Object, args py.Tuple) (py.Object, error) {
100-
var key py.Object // key to search for
101-
var default_ py.Object // return when not found
102-
var err error // error obj
100+
var (
101+
key py.Object
102+
dflt = py.None
103+
err error
104+
)
103105

104106
if len(args) == 1 {
105107
if objectIsString(args[0]) {

0 commit comments

Comments
 (0)