Skip to content

Commit 9087c2f

Browse files
authored
Merge pull request #4011 from youknowone/io-encoding
Fix _TextIOBase.encoding impl
2 parents 8b7a3ea + a5b18c4 commit 9087c2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vm/src/stdlib/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ mod _io {
707707
#[pyclass(flags(BASETYPE))]
708708
impl _TextIOBase {
709709
#[pyproperty]
710-
fn encoding(&self, vm: &VirtualMachine) -> PyObjectRef {
710+
fn encoding(_zelf: PyObjectRef, vm: &VirtualMachine) -> PyObjectRef {
711711
vm.ctx.none()
712712
}
713713
}

0 commit comments

Comments
 (0)