mercurial/pure/osutil.py
changeset 52640 24ee91ba9aa8
parent 51859 f4733654f144
--- a/mercurial/pure/osutil.py	Mon Jan 06 14:15:40 2025 -0500
+++ b/mercurial/pure/osutil.py	Sun Jan 05 21:03:17 2025 -0500
@@ -119,7 +119,7 @@
 
     def _raiseioerror(name):
         err = ctypes.WinError()  # pytype: disable=module-attr
-        raise IOError(
+        raise OSError(
             err.errno, '%s: %s' % (encoding.strfromlocal(name), err.strerror)
         )