Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions builtin/builtin.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,6 @@ func builtin_print(self py.Object, args py.Tuple, kwargs py.StringDict) (py.Obje
return nil, err
}
sep := sepObj.(py.String)

if kwargs["end"] != nil {
endObj = kwargs["end"]
}
end := endObj.(py.String)

write, err := py.GetAttrString(file, "write")
Expand Down
6 changes: 0 additions & 6 deletions builtin/tests/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,6 @@ def gen2():
with open("testfile", "r") as f:
assert f.read() == "1,2,3,\n"

with open("testfile", "w") as f:
print("hello",sep="",end="123", file=f)

with open("testfile", "r") as f:
assert f.read() == "hello123"

doc="round"
assert round(1.1) == 1.0

Expand Down