File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
internal_filesystem/lib/mpos/net Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -688,10 +688,9 @@ def is_session_active(self):
688688 @staticmethod
689689 def is_network_error (exception ):
690690 """Check if exception is a network error (synchronous)."""
691- return self . _async_class .is_network_error (exception )
691+ return _original_download_manager .is_network_error (exception )
692692
693- @staticmethod
694- def get_resume_position (outfile ):
693+ def get_resume_position (self , outfile ):
695694 """Get resume position (synchronous)."""
696695 return self ._async_class .get_resume_position (outfile )
697696
@@ -708,3 +707,11 @@ def get_resume_position(outfile):
708707
709708# Replace with smart wrapper
710709DownloadManager = _DownloadManagerWrapper (_original_download_manager )
710+
711+ # ============================================================================
712+ # Module-level exports for direct import
713+ # ============================================================================
714+
715+ # Export utility functions at module level for convenience
716+ is_network_error = _original_download_manager .is_network_error
717+ get_resume_position = _original_download_manager .get_resume_position
You can’t perform that action at this time.
0 commit comments