The 'with' keyword can be used in all Python scripts to automatically close the resource and clean up the code. Compare:
f = open(filename, 'r') data = f.read() f.close()
with:
with open(filename, 'r') as f: data = f.read()
Fixed and pushed to master in e21bed6f6d049e776eded9016aed635945350ce6
Metadata Update from @edewata: - Issue assigned to kaskahn - Issue set to the milestone: 10.1 - 06/13 (June)
Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.
This issue has been cloned to GitHub and is available here: https://github.com/dogtagpki/pki/issues/1130
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.
Login to comment on this ticket.