| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…tem (pythonGH-112038) (cherry picked from commit 29af736) Co-authored-by: AN Long <aisk@users.noreply.github.com>
|
GH-112044 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The change is just like #104892.
I think this is hard to test this on GHA, since it needs a disk with fat32 or exfat filesystem. I made a test on my local machine, the drive "E://" is a fat32 filesystem.
Test codes:
Before the comit:
C:\Users\xxxxx\Source\cpython>python a.py Running Debug|x64 interpreter... Traceback (most recent call last): File "C:\Users\xxxxx\Source\cpython\a.py", line 4, in <module> print(os.stat(f.fileno())) ^^^^^^^^^^^^^^^^^^^ OSError: [WinError 87] 参数错误。: 3 sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='e://a.jpg' mode='r' encoding='cp936'>After the commit: