Message194557
[sky@localhost cpython]$ cat /tmp/a.txt
x-application/mimea mimea
application/mimeb mimeb
[sky@localhost cpython]$ cat /tmp/a.py
import warnings
warnings.simplefilter('default')
import mimetypes
mimetypes.read_mime_types('/tmp/a.txt')
[sky@localhost cpython]$ python3 /tmp/a.py
/tmp/a.py:7: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/a.txt' mode='r' encoding='UTF-8'>
mimetypes.read_mime_types('/tmp/a.txt')
Attached the patch to fix the resource warning problem. |
|
Date |
User |
Action |
Args |
2013-08-06 15:31:44 | vajrasky | set | recipients:
+ vajrasky |
2013-08-06 15:31:44 | vajrasky | set | messageid: <1375803104.23.0.740839065527.issue18670@psf.upfronthosting.co.za> |
2013-08-06 15:31:44 | vajrasky | link | issue18670 messages |
2013-08-06 15:31:44 | vajrasky | create | |
|