Closed johnwquarles closed 7 years ago
Hi there,
When running tzlocal on my Mac, I get the following warnings:
tzlocal
/Users/john/.virtualenvs/sams/lib/python3.4/site-packages/tzlocal/darwin.py:29: ResourceWarning: unclosed file <_io.BufferedReader name=4> _cache_tz = _get_localzone() /Users/john/.virtualenvs/sams/lib/python3.4/site-packages/tzlocal/darwin.py:29: ResourceWarning: unclosed file <_io.BufferedReader name=6> _cache_tz = _get_localzone()
This PR will get rid of them by closing (in darwin.py) the stderr and stdouts of the subprocess that is created.
darwin.py
stderr
stdout
Thank you for the useful package!
Thanks.
Hi there,
When running
tzlocal
on my Mac, I get the following warnings:This PR will get rid of them by closing (in
darwin.py
) thestderr
andstdout
s of the subprocess that is created.Thank you for the useful package!