deeplook / svglib

Read SVG files and convert them to other formats.
GNU Lesser General Public License v3.0
311 stars 80 forks source link

Fix files not closed in setup.py #293

Closed victorbnl closed 2 years ago

victorbnl commented 2 years ago

Files in Python should be open using

with open('file', 'r') as f:
    f.read()

and not

open('file').read()
claudep commented 2 years ago

That's true, however we might also solve this by using a setup.cfg file, which is a more modern and clean approach. Would you like to try that?

victorbnl commented 2 years ago

Oh I didn't know it was more modern, then I'm going to use that in my projects! I'm closing this PR as it's not related anymore and making the changes to a setup.cfg in another one.