News for hackers. Stuff that matters.
Re:All Bitcoin private keys are on this website by ssl232 on Tuesday December 21, 2021 @06:35AM (#29636370)
https://github.com/TheDen/btc-heist/blob/5cf0ef73857277f1321...

You don't need the f.close() here - the context manager does it for you.

Re:All Bitcoin private keys are on this website by theden on Tuesday December 21, 2021 @06:39AM (#29636396)
Thanks, fixed
Re:All Bitcoin private keys are on this website by dylan604 on Tuesday December 21, 2021 @11:22AM (#29638864)
What's wrong with explicitly closing it though?
Re:All Bitcoin private keys are on this website by jraph on Tuesday December 21, 2021 @04:04PM (#29642070)
it's surprising, someone reading the code could wonder why the file was closed while a context manager was used. Maybe it is some workaround?

Better avoid surprising things.