Skip to content

Commit 4b347aa

Browse files
authored
Revert "Fix "end" option in print func (#90)" (#94)
This reverts commit 16d3870.
1 parent e427daf commit 4b347aa

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

builtin/builtin.go

-4
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,6 @@ func builtin_print(self py.Object, args py.Tuple, kwargs py.StringDict) (py.Obje
187187
return nil, err
188188
}
189189
sep := sepObj.(py.String)
190-
191-
if kwargs["end"] != nil {
192-
endObj = kwargs["end"]
193-
}
194190
end := endObj.(py.String)
195191

196192
write, err := py.GetAttrString(file, "write")

builtin/tests/builtin.py

-6
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,6 @@ def gen2():
309309
with open("testfile", "r") as f:
310310
assert f.read() == "1,2,3,\n"
311311

312-
with open("testfile", "w") as f:
313-
print("hello",sep="",end="123", file=f)
314-
315-
with open("testfile", "r") as f:
316-
assert f.read() == "hello123"
317-
318312
doc="round"
319313
assert round(1.1) == 1.0
320314

0 commit comments

Comments
 (0)