File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ fn sys_displayhook(obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
231
231
Ok ( ( ) )
232
232
}
233
233
234
- #[ pystruct_sequence( name = "sys.getwindowsversion_type " ) ]
234
+ #[ pystruct_sequence( name = "sys.getwindowsversion " ) ]
235
235
#[ derive( Default , Debug ) ]
236
236
#[ cfg( windows) ]
237
237
struct WindowsVersion {
@@ -299,7 +299,7 @@ fn sys_getwindowsversion(vm: &VirtualMachine) -> PyResult<crate::obj::objtuple::
299
299
version. dwBuildNumber ,
300
300
) , // TODO Provide accurate version, like CPython impl
301
301
}
302
- . into_struct_sequence ( vm, vm. try_class ( "sys" , "getwindowsversion_type " ) ?)
302
+ . into_struct_sequence ( vm, vm. try_class ( "sys" , "_getwindowsversion_type " ) ?)
303
303
}
304
304
}
305
305
@@ -523,7 +523,7 @@ settrace() -- set the global debug tracing function
523
523
let getwindowsversion = WindowsVersion :: make_class ( ctx) ;
524
524
extend_module ! ( vm, module, {
525
525
"getwindowsversion" => ctx. new_function( sys_getwindowsversion) ,
526
- "getwindowsversion_type " => getwindowsversion,
526
+ "_getwindowsversion_type " => getwindowsversion, // XXX: This is not a python spec but required by current RustPython implementation
527
527
} )
528
528
}
529
529
You can’t perform that action at this time.
0 commit comments