File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -732,18 +732,15 @@ pub mod module {
732732 vm. signal_handlers
733733 . get_or_init ( crate :: signal:: new_signal_handlers) ;
734734
735- let after_forkers_child: Vec < PyObjectRef > =
736- vm. state . after_forkers_child . lock ( ) . clone ( ) ;
735+ let after_forkers_child: Vec < PyObjectRef > = vm. state . after_forkers_child . lock ( ) . clone ( ) ;
737736 run_at_forkers ( after_forkers_child, false , vm) ;
738737 }
739738
740739 /// Force-unlock a PyMutex if held by a dead thread after fork.
741740 ///
742741 /// # Safety
743742 /// Must only be called after fork() in the child process.
744- unsafe fn force_unlock_mutex_after_fork < T > (
745- mutex : & crate :: common:: lock:: PyMutex < T > ,
746- ) {
743+ unsafe fn force_unlock_mutex_after_fork < T > ( mutex : & crate :: common:: lock:: PyMutex < T > ) {
747744 if mutex. try_lock ( ) . is_none ( ) {
748745 // SAFETY: Lock is held by a dead thread after fork.
749746 unsafe { mutex. force_unlock ( ) } ;
Original file line number Diff line number Diff line change @@ -827,8 +827,7 @@ mod sys {
827827 Ok ( exc) => {
828828 // PyErr_Display: try traceback._print_exception_bltin first
829829 if let Ok ( tb_mod) = vm. import ( "traceback" , 0 )
830- && let Ok ( print_exc_builtin) =
831- tb_mod. get_attr ( "_print_exception_bltin" , vm)
830+ && let Ok ( print_exc_builtin) = tb_mod. get_attr ( "_print_exception_bltin" , vm)
832831 && print_exc_builtin
833832 . call ( ( exc. as_object ( ) . to_owned ( ) , ) , vm)
834833 . is_ok ( )
You can’t perform that action at this time.
0 commit comments