Skip to content

Commit 76b65a2

Browse files
Update stdlib/src/pyexpat.rs
Co-authored-by: Jeong, YunWon <[email protected]>
1 parent 8249938 commit 76b65a2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

stdlib/src/pyexpat.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,8 @@ mod _pyexpat {
3939

4040
type MutableObject = PyRwLock<PyObjectRef>;
4141

42-
#[pyattr]
43-
pub fn version_info(vm: &VirtualMachine) -> PyTupleRef {
44-
vm.ctx.new_tuple(vec![
45-
PyInt::from(2).into_pyobject(vm),
46-
PyInt::from(7).into_pyobject(vm),
47-
PyInt::from(1).into_pyobject(vm),
48-
])
49-
}
42+
#[pyattr(name = "version_info")]
43+
pub const VERSION_INFO: (u32, u32, u32) = (2, 7, 1);
5044

5145
#[pyattr]
5246
#[pyclass(name = "xmlparser", module = false, traverse)]

0 commit comments

Comments
 (0)