def _patch_stopall():
 for patch in reversed(_patch._active_patches):
  patch.stop()

def _patch_stopall ( ) : for patch in reversed ( _patch . _active_patches ) : patch . stop ( )
stop all active patches .