Mithil467 / mitype

Typing speed test in terminal
http://mithil467.github.io/mitype
GNU General Public License v3.0
415 stars 62 forks source link

Open files using `with` statement #92

Closed Mithil467 closed 3 years ago

Mithil467 commented 3 years ago

It is a good idea to use with open(filename) as f: instead of using a combination of open and close. Python ensures the resources are closed with the context.

The files to be changed are -