Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaving unclosed files when signing/veryfying #10

Open
tpazderka opened this issue May 24, 2021 · 0 comments
Open

Leaving unclosed files when signing/veryfying #10

tpazderka opened this issue May 24, 2021 · 0 comments

Comments

@tpazderka
Copy link

Code in module pycsob.utils is leaving unclosed files after verification/signing. The files should be closed when no longer needed.

with open(pubkeyfile) as a:
    key = RSA.importKey(a.read())

key = RSA.importKey(open(keyfile).read())

key = RSA.importKey(open(pubkeyfile).read())

JiriKr added a commit to olc-systems-sro/pycsob that referenced this issue Apr 5, 2022
zbohm pushed a commit to zbohm/pycsob that referenced this issue Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant