File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -207,18 +207,20 @@ func loadValue(src Object, data interface{}) error {
207207}
208208
209209// Println prints the provided strings to gpython's stdout.
210- func Println (self Object , args ... string ) ( int , error ) {
210+ func Println (self Object , args ... string ) error {
211211 sysModule , err := self .(* Module ).Context .GetModule ("sys" )
212212 if err != nil {
213- return 1 , err
213+ return err
214214 }
215215 stdout := sysModule .Globals ["stdout" ]
216216 write , err := GetAttrString (stdout , "write" )
217217 if err != nil {
218- return 1 , err
218+ return err
219219 }
220220 call , ok := write .(I__call__ )
221- if ! ok { ... }
221+ if ! ok {
222+ return AssertionError
223+ }
222224 for _ , v := range args {
223225 if ! strings .Contains (v , "\n " ) {
224226 v += " "
You can’t perform that action at this time.
0 commit comments