mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 19:24:57 +08:00
1 parent
38a6a8d984
commit
517ffed401
1 file changed
+1
-1
@@ -98,7 +98,7 @@ mod winreg {
|
||||
|
||||
#[pymethod(magic)]
|
||||
fn bool(&self) -> bool {
|
||||
self.key().raw_handle() != core::ptr::null_mut()
|
||||
!self.key().raw_handle().is_null()
|
||||
}
|
||||
#[pymethod(magic)]
|
||||
fn enter(zelf: PyRef<Self>) -> PyRef<Self> {
|
||||
|
||||
Reference in new issue
Block a user