deeplook / svglib

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

Modernize code to Python 3.6+ #274

Closed eumiro closed 3 years ago

eumiro commented 3 years ago
deeplook commented 3 years ago

Nice! Looks like a bot should be able to do that, one would hope.

eumiro commented 3 years ago

There's some stuff you can do with pyupgrade, but not everything, the rest was search&replace. I wanted to pytestize your tests, but for that I needed to convert path manipulation to pathlib.Path and for that I needed to convert string formatting to f-strings. So first step done :-)