qgis / QGIS-Django

Django project for QGIS related activities such as plugin repository
http://qgis.org
GNU General Public License v2.0
86 stars 59 forks source link

Update deprecated decodestring method to decodebytes to fix RPC2 upload #398

Closed Xpirix closed 1 month ago

Xpirix commented 1 month ago

This is a fix for #397 and https://github.com/qgis/QGIS-Django/pull/374#issuecomment-2096337527

The base64.decodestring() function has been deprecated since Python 3.1, and removed in Python 3.9. Since we are now using Python 3.12, I've updated it to base64.decodebytes() to address the issue.