@@ -23,10 +23,10 @@ use rustls::server::ResolvesServerCert;
2323use rustls:: server:: ServerConfig ;
2424use rustls:: server:: ServerConnection ;
2525use rustls:: sign:: CertifiedKey ;
26- use rustpython_vm:: builtins:: PyBaseExceptionRef ;
26+ use rustpython_vm:: builtins:: { PyBaseException , PyBaseExceptionRef } ;
2727use rustpython_vm:: convert:: IntoPyException ;
2828use rustpython_vm:: function:: ArgBytesLike ;
29- use rustpython_vm:: { AsObject , PyObjectRef , PyPayload , PyResult , TryFromObject } ;
29+ use rustpython_vm:: { AsObject , Py , PyObjectRef , PyPayload , PyResult , TryFromObject } ;
3030use std:: io:: Read ;
3131use std:: sync:: { Arc , Once } ;
3232
@@ -984,7 +984,7 @@ pub(super) fn create_client_config(options: ClientConfigOptions) -> Result<Clien
984984}
985985
986986/// Helper function - check if error is BlockingIOError
987- pub ( super ) fn is_blocking_io_error ( err : & PyBaseExceptionRef , vm : & VirtualMachine ) -> bool {
987+ pub ( super ) fn is_blocking_io_error ( err : & Py < PyBaseException > , vm : & VirtualMachine ) -> bool {
988988 err. fast_isinstance ( vm. ctx . exceptions . blocking_io_error )
989989}
990990
@@ -1534,7 +1534,7 @@ fn ssl_read_tls_records(
15341534
15351535/// Check if an exception is a connection closed error
15361536/// In SSL context, these errors indicate unexpected connection termination without proper TLS shutdown
1537- fn is_connection_closed_error ( exc : & PyBaseExceptionRef , vm : & VirtualMachine ) -> bool {
1537+ fn is_connection_closed_error ( exc : & Py < PyBaseException > , vm : & VirtualMachine ) -> bool {
15381538 use rustpython_vm:: stdlib:: errno:: errors;
15391539
15401540 // Check for ConnectionAbortedError, ConnectionResetError (Python exception types)
0 commit comments