openzoom / deepzoom.py

Python Deep Zoom Tools
http://openzoom.org/
Other
176 stars 74 forks source link

Compatibility fix for Python <3.6 #14

Closed fkloft closed 2 years ago

fkloft commented 4 years ago

f-strings were introduced in Python 3.6; however, we're still using mostly Python 3.5 and on some machines even 3.4. The one usage of an f-string in your project can be easily replaced to make it work in older Python versions.

Also, I added another commit to set the output format in case it isn't JPEG.

gasi commented 2 years ago

Thanks for your contribution. I tweaked it a bit and merged it as #24.