Bug #81519 Guarantee file closing of input files in optionfiles module (contribution)
Submitted: 20 May 2016 13:28 Modified: 28 Feb 2022 19:33
Reporter: OCA Admin (OCA) Email Updates:
Status: Closed Impact on me:
Category:Connector / Python Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[20 May 2016 13:28] OCA Admin
This bug tracks a contribution by Vilnis Termanis (Github user: vtermanis) as described in http://github.com/mysql/mysql-connector-python/pull/17

How to repeat:
See description

Suggested fix:
See contribution code attached
[20 May 2016 13:28] OCA Admin
Contribution submitted via Github - Guarantee file closing of input files in optionfiles module 
(*) Contribution by Vilnis Termanis (Github vtermanis, mysql-connector-python/pull/17#issuecomment-220566947): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_69850808.txt (text/plain), 2.35 KiB.

[21 May 2016 12:12] MySQL Verification Team
Hello Vilnis Termanis,

Thank you for the report and contribution.

[15 Feb 2022 16:24] Nuno Mariz
Posted by developer:
Thank you for the contribution.
[28 Feb 2022 19:33] Philip Olson
Posted by developer:
Fixed as of the upcoming MySQL Connector/Python 8.0.29 release, and here's the proposed changelog entry from the documentation team:

Added a context manager to open files in the optionfiles module to be
closed correctly. Thanks to Vilnis Termanis for the patch.

Thank you for the bug report.