Skip to content

Commit f8a9604

Browse files
committed
Apply the review comment
1 parent 2719465 commit f8a9604

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

py/import.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,8 @@ func BuiltinImport(ctx Context, self Object, args Tuple, kwargs StringDict, curr
375375
localsDict = StringDict{}
376376
}
377377

378-
if fromlist == None {
379-
fromlistTuple = Tuple{}
380-
} else {
378+
fromlistTuple = Tuple{}
379+
if fromlist != None {
381380
fromlistTuple, err = SequenceTuple(fromlist)
382381
if err != nil {
383382
return nil, err

0 commit comments

Comments
 (0)