mercurial/patch.py
changeset 52640 24ee91ba9aa8
parent 52379 c921c23a9681
child 52643 5cc8deb96b48
--- a/mercurial/patch.py	Mon Jan 06 14:15:40 2025 -0500
+++ b/mercurial/patch.py	Sun Jan 05 21:03:17 2025 -0500
@@ -2023,7 +2023,7 @@
     try:
         pos = lr.fp.tell()
         fp = lr.fp
-    except IOError:
+    except OSError:
         fp = stringio(lr.fp.read())
     gitlr = linereader(fp)
     gitlr.push(firstline)