A flexible WSGI implementation and toolkit
Python Other
Latest commit 02f5784 Oct 19, 2016 @rowillia rowillia committed with untitaker Fix some Python 3 issues flagged by the -3 flag and Pylint (#1017)
* Fix some Python 3 issues flagged by the -3 flag and Pylint

I've been working through looking at adopting Python 3, and I've been utilizing the `-3` flag to help idenitfy issues with Python 3.

Here's a quick write up I did last week:


The `-3` flagged a few issues in `werkzeug` worth fixing, namely around `__eq__` shadowing `__hash__` in PY3.

Fixing these issues will help make the `-3` flag less noisey for folks running Werkzeug in production.

* Added tests, removed unneeded bool cast

* Fix tests, fix lint



Werkzeug started as simple collection of various utilities for WSGI applications and has become one of the most advanced WSGI utility modules. It includes a powerful debugger, full-featured request and response objects, HTTP utilities to handle entity tags, cache control headers, HTTP dates, cookie handling, file uploads, a powerful URL routing system and a bunch of community-contributed addon modules.

Werkzeug is unicode aware and doesn't enforce a specific template engine, database adapter or anything else. It doesn't even enforce a specific way of handling requests and leaves all that up to the developer. It's most useful for end user applications which should work on as many server environments as possible (such as blogs, wikis, bulletin boards, etc.).

Details and example applications are available on the Werkzeug website.


master https://travis-ci.org/pallets/werkzeug.svg?branch=master
0.11-maintenance https://travis-ci.org/pallets/werkzeug.svg?branch=0.11-maintenance
0.10-maintenance https://travis-ci.org/pallets/werkzeug.svg?branch=0.10-maintenance
0.9-maintenance https://travis-ci.org/pallets/werkzeug.svg?branch=0.9-maintenance