We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 93c97ba + d0f1269 commit d114eb1Copy full SHA for d114eb1
py/util.go
@@ -222,16 +222,12 @@ func Println(self Object, args ...string) error {
222
return AssertionError
223
}
224
for _, v := range args {
225
- if strings.Contains(v, "\n") {
226
- _, err = Call(write, Tuple{String(v)}, nil) // do not write a space
227
- if err != nil {
228
- return 1, err
229
- }
230
- } else {
231
- _, err = Call(write, Tuple{String(v + " ")}, nil)
232
233
234
+ if !strings.Contains(v, "\n") {
+ v += " "
+ }
+ _, err := call(Tuple{String(v)}, nil)
+ if err != nil {
+ return err
235
236
237
0 commit comments