We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82b447c commit 9643718Copy full SHA for 9643718
configure.py
@@ -1540,8 +1540,11 @@ def write_config(data, name):
1540
os.mkdir(icu_tmp_path)
1541
icu_data_path = os.path.join(icu_tmp_path, icu_data_file_l)
1542
with open(icu_data_path, 'wb') as outf:
1543
- with bz2.BZ2File(compressed_data, 'rb') as inf:
1544
- shutil.copyfileobj(inf, outf)
+ inf = bz2.BZ2File(compressed_data, 'rb')
+ try:
1545
+ shutil.copyfileobj(inf, outf)
1546
+ finally:
1547
+ inf.close()
1548
# Now, proceed..
1549
1550
# relative to dep..
0 commit comments