mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Merge pull request #844 from divergentdave/patch-1
setup.py: Close open file handle before deleting
This commit is contained in:
commit
acd4f5f26f
1
setup.py
1
setup.py
|
@ -706,6 +706,7 @@ class pil_build_ext(build_ext):
|
||||||
if ret >> 8 == 0:
|
if ret >> 8 == 0:
|
||||||
fp = open(tmpfile, 'r')
|
fp = open(tmpfile, 'r')
|
||||||
multiarch_path_component = fp.readline().strip()
|
multiarch_path_component = fp.readline().strip()
|
||||||
|
fp.close()
|
||||||
_add_directory(
|
_add_directory(
|
||||||
self.compiler.library_dirs,
|
self.compiler.library_dirs,
|
||||||
'/usr/lib/' + multiarch_path_component)
|
'/usr/lib/' + multiarch_path_component)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user