logandk/serverless-wsgi

replace calls to werkzeug.urls with urllib.parse

wobeng opened this issue ยท 6 comments

wobeng commented

Hello

I noticed in line 17:

from werkzeug.urls import url_encode, url_unquote, url_unquote_plus

url_encode, url_unquote, url_unquote_plus is still being imported from werkzeug.urls instead of urllib.parse

Also, werkzeug just released 3.0.0 which has removed url_encode (and probably the others) which is breaking serverless-wsgi. Per the deprecation warning. https://github.com/pallets/werkzeug/blob/2.3.7/src/werkzeug/urls.py#L1235

dolfno commented

have a hotfix + remove deps ready, but cant create pul request..

Happy to accept a PR. @dolfno let me know if I need to do anything, PR's normally work fine on this repo.

dolfno commented

am i doing something wrong?
image

@logandk I created a PR as I had to fix it earlier anyway on my end, hopefully makes it easy enough. Thanks again for the cool script!