Skip to content

Commit 7cd2bcf

Browse files
committed
Fix ExceptionNewf arguments
1 parent 1322130 commit 7cd2bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (o *File) Read(args Tuple, kwargs StringDict) (Object, error) {
103103

104104
default:
105105
// invalid type
106-
return nil, ExceptionNewf(TypeError, "%s() argument %d must be int, not %s", "read", arg.Type().Name)
106+
return nil, ExceptionNewf(TypeError, "read() argument 1 must be int, not %s", arg.Type().Name)
107107
}
108108

109109
b, err := ioutil.ReadAll(r)

0 commit comments

Comments
 (0)