]> granicus.if.org Git - python/commit
Fix SF buf #476953: Bad more for opening file gives bad msg.
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 9 Nov 2001 16:17:24 +0000 (16:17 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 9 Nov 2001 16:17:24 +0000 (16:17 +0000)
commit41c8321252a84d8a9d0ded374e7db7a4393036be
treed2e2f9c274be1c8b1e84b23863c9bda799356cb6
parent20747fa167dc8224c01ab0ab2ece81c9c5927dec
Fix SF buf #476953: Bad more for opening file gives bad msg.

If fopen() fails with EINVAL it means that the mode argument is
invalid.  Return the mode in the error message instead of the
filename.
Lib/test/test_file.py
Objects/fileobject.c