Help

5

why we use 'from werkzeug.urls import url_encode' in odoo 12

Avatar
Syam G S

please Reply

Avatar
Discard
1 Answer
3
Avatar
Keerthi
Best Answer

werkzeug.urls used to provide several wrapper functions for Python 2 urlparse, whose main purpose were to work around the behavior of the Py2 stdlib and its lack of unicode support. While this was already a somewhat inconvenient situation, it got even more complicated because Python 3’s urllib.parse actually does handle unicode properly. In other words, this module would wrap two libraries with completely different behavior. So now this module contains a 2-and-3-compatible backport of Python 3’s urllib.parse, which is mostly API-compatible.

Please look below link fr more:-

\http://werkzeug.pocoo.org/docs/0.14/urls/

Avatar
Discard